SofTeCode Blogs

One Place for all Tech News and Support

100+ Netbeans Shortcuts

4 min read
netbeans shortcuts

image source apache

0
(0)

Today we are going to talk about useful shortcuts provided in Netbeans. Netbeans shortcuts makes the task easier and helpful for the developers

Features of Netbeans

Fast & Smart Editing

Apache NetBeans is far quite a text editor. It highlights ASCII text file syntactically and semantically, allows you to easily refactor code, with a variety of handy and powerful tools.

Java, JavaScript, PHP, HTML5, CSS, and More

Apache NetBeans provides editors, wizards, and templates to assist you create applications in Java, PHP and lots of other languages.

Cross-Platform

Apache NetBeans are often installed on all operating systems that support Java, i.e, Windows, Linux, Mac OSX and BSD. Write Once, Run Anywhere, applies to NetBeans too.

NetBeans Shortcuts

1. General Keyboard Shortcuts
Ctrl+F3Search word at the insert point
F3/Shift+F3Find next/previous in file
Ctrl+F/HFind/Replace in a file
Alt+F7Find usages
Ctrl+Shift+F/HFind/replace in projects
Alt+Shift+UFind usages results
Alt+Shift+HTurn off search result highlights
Ctrl+RRename
Ctrl+U, then UConvert selection to uppercase
Ctrl+U, then LConvert selection to lowercase
Ctrl+U, then SToggle case of selection
Ctrl+Shift+VPaste formatted
Ctrl+Shift+DShow Clipboard History
Ctrl+IJump to the quick search field
Alt+Shift+LCopy file path
Ctrl+O/Alt+Shift+OGo to type/file
Ctrl+Shift+TGo to JUnit test
Ctrl+Shift+BGo to source
Ctrl+BGo to declaration
Ctrl+GGo to line
Ctrl+Shift+MToggle add/remove bookmark
Ctrl+Shift+./,Next/previous bookmark
Ctrl+./,Next/previous usage/compile error
Alt+Shift+./,Select next/previous element
Ctrl+Shift+1/2/3Select in Projects/Files/Favorites
Ctrl+[Move caret to matching bracket
Ctrl+K/Ctrl+Shift+KNext/previous word match
Alt+Left Arrow/Alt+Right Arrow/Ctrl+QGo backward/forward/to the last edit
Alt+Up Arrow/Down ArrowNext/previous marked occurrence

 

2. Coding in C/C++
Alt+Shift+CGo to declaration
Ctrl+F9Evaluate expression

 

3. Coding in Java
Alt+InsertGenerate code
Ctrl+Shift+IFix all class imports
Alt+Shift+IFix selected class’s import
Alt+Shift+FFormat selection (Indent)
Alt+Shift+Arrow KeysShift lines left/right/up/down
Ctrl+Shift+RRectangular Selection (Toggle)
Ctrl+Shift+Arrow Up/Arrow DownCopy lines up/down
Ctrl/Alt+F12Inspect members/hierarchy
Ctrl+Shift+C/Ctrl+/Add/remove comment lines
Ctrl+EDelete current line

 

4. Java Editor Code Templates
Type shortcut and press Tab
psvmpublic static void main
EnEnumeration
ExException
Psfpublic static final
Psfbpublic static final boolean
Psfipublic static final int
Psfspublic static final String
StString
ababstract
asassert true
brbreak
boboolean
cacatch
clclass
cncontinue
dbdouble
dfdefault
eqequal
exextends
pupublic
prprivate
peprotected
ththrows
fyfinally
imimplements
ieinterface
twthrow
irimport
lelength
soutSystem.out.println()
soutvSystem.out.println(“obj”+obj)
whwhile
vovolatile
iofinstanceof
fifinal
flfloat
fafalse
shshort
psfprivate static final
psfbprivate static final boolean
psfiprivate static fianl int
psfsprivate static final String
pstprintStackTrace()
bcom/**/

 

5. JSP Editor Code Templates
Type shortcut and press Tab
alwindows.alert()
brbreak;
funfunction${name}…
hiwindows.history
dwdocument.write()
eq${}equals
fa${}false
lo${}windows.location
re${}return
Win$()window
ca${}caseCatch()
catchcatch
condwindows.consoledebug()
coniwindows.console.info()
conlwindows.console.log()
conwwindows.console.warn()
ct${}catch
do${}document
iof${}instanceof

 

6. Compiling, Testing, and Running
F9Compile package/ file
F11Build the main project
Shift+F11Clean and build the main project
Ctrl+QSet request parameters
Ctrl+Shift+UCreate Unit test
Ctrl+F6/Alt+F6Run Unit test on file/project
F6/Shift+F6Run main project/file

 

7. Opening and Toggling between Views
Ctrl+Tab (Ctrl+`)Switch between open documents by order used
Shift+EscMaximize window (toggle)
Ctrl+F4/Ctrl+WClose selected window
Ctrl+Shift+F4Close all windows
Shift+F10Open contextual menu
Ctrl+Page Up / Page DownSwitch between open documents by order of tabs
Ctrl+Alt+TReopen the recently closed file
Ctrl+Alt+Page Up / Page DownToggle between editor types
Alt+Mouse Wheel Up / DownZoom text in / out
Ctrl+Shift+SToggle Inspect Mode

 

8. Debugging
Ctrl+F5Start debugging the main project
Ctrl+Shift+F5Start debugging current file
Ctrl+Shift+F6Start debugging test for file
Shift+F5/F5Stop/Continue debugging session
F4Run to cursor location in a file
F7/F8Step into/over
Ctrl+F7Step out
Ctrl+Alt+UpGo to the called method
Ctrl+Alt+Arrow DownGo to the calling method
Ctrl+F9Evaluate expression
Ctrl+F8Toggle breakpoint
Ctrl+Shift+F8New breakpoint
Ctrl+Shift+F7New watch

this were Netbeans shortcuts provided in the platform.

To download Netbeans click here to download

visual studio shortcuts

sublime-text-editor-shortcuts for windows

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Give your views

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Social Love – Follow US