1. Complete the code: Ctrl + \\// press this key combination anywhere, and a corresponding reference field will be prompted;
2. error message: Alt + enter // as the name suggests, when the system reports an error, press this combination to view the system prompt;
3. Automatically complete the string: Ctrl + L Ctrl + K // the latter (CTRL + l never used) the combination key automatically plays the string, each time you press a new string, string order from bottom to top;
4. Right-click to repair Automatic Import
5. Right click: format the code style
6. Import the required package: Ctrl + Shift + I
7. format code: Alt + Shift + F
8. Comment/uncomment: Ctrl +/. This function supports multi-line comment, but you must first select the line to comment
9. Main method generated by psvm + Tab
10. sout + TAB // generate the output statement
11. CTRL + enter // Add blank rows without moving the cursor;
12. Alt + Shift + f // format. You can explain what it means;
13. Alt + enter // not very useful;
13. Alt + insert // insert Code (including constructors, setter and getter methods );
14. Alt + Shift + O // convert to class;
15. CTRL + TAB // switch to the open source file;
16. CTRL + O or ctrlt + Click // to go to the source. Press ctrl and click a source to open the source code;
Additional items:
Shift + F6 // run the current program
CTRL + Shift + F5: // debug the current program
CTRL + f // quickly search for strings in the code
CTRL + Delete // It is also a common shortcut. You can try it;
CTRL + Shift + right // select one by one to the right
CTRL + Shift + Left // select one from left
CTRL + Shift + up/down // copy the current row to the next row without moving the cursor
* Create a project: Ctrl-shift-n
* Automatic formatting code: Alt-shift-F
* Save the file: Ctrl-S
* Code Completion: Ctrl -"
* Automatic Code Completion: Default tab (I personally prefer the Space key, which can be modified in "option-Editor)
* Show javadoc: Alt-F1
* Run the main project: F6
* Compile main project: Shift-F11
* Run file: Shift-F6
* Create a JUnit test: Ctrl-shift-u
* Run the test: Alt-F6
* Set breakpoint: Ctrl-F8
* Debugging main project: Ctrl-F5
* Debug file: Ctrl-Shift-F5
* Step-by-Step debugging: F7
* Automatic completion of code: Ctrl-", which can automatically complete code such as object Creation
* Automatic Code insertion: Alt-insert. This can automatically Insert the code of the getter-setter method.
* Follow the prompts to operate: Alt + enter, for example, insert the required package or delete unused import package
* Automatically fix the imported package: Ctrl-shift-I
* Separately repair the introduced package: Alt-shift-I
* Automatically paste the code: Ctrl-shift-up/down arrow key
* Automatic moving code: Alt-shift-up/down arrow keys
* Real-time Automatic completion of code templates: Tab
* Rename the variable: Ctrl-R
* The prompt in the javadoc pop-up box is Ctrl-shift-space.
The netbeans shortcut keys listed here are directly copied from a document in netbeans, which can be conveniently viewed here. (Last updated in 3.3.30)
Search, search, and replace
Ctrl-F3 searches for words at insertion points
F3/Shift-F3 find the next/previous in the file
CTRL-F/h find/Replace in the file
Alt-F7 lookup using instance
CTRL-shift-P search in the project
Alt-shift-u search instance results
Alt-shift-H close search result highlighting
Alt-shift-l jump to the next one in the list (all files)
Alt-shift-K jump to the previous one in the list (all files)
CTRL-r reload the form
Alt-U-U converts selected content to uppercase
Alt-U-L converts selected content to lowercase
Alt-U-R switches case sensitivity to selected content
Navigation in source code
Alt-shift-O to class
Alt-shift-E go to JUnit Test
Alt-o go to source code
Alt-g to Declaration
CTRL-B go to super implementation
Alt-k/alt-l move back/forward
CTRL-g go to line
Ctrl-F2 switch Add/delete bookmarks
F2/Shift-F2 next/previous bookmarks
F12/Shift-F12 next/last use instance/compilation Error
Ctrl-Shift-1/2/3 in projects/files/favorites select
CTRL-[move the insert mark to the matching square brackets
CTRL-^ Ctrl-[(French/Belgian keyboard)
Coded in Java
CTRL-I override method
Alt-shift-F/I repairs the export of all/selected classes
Alt-shift-W around the try-Catch Block
CTRL-shift-F reset
CTRL-D/Ctrl-t move left/move one tab to the right
CTRL-shift-t/d Add/uncomment rows ("//
CTRL-L/K Insert the next/previous horse
ESC/Ctrl-Space key close/open code complete
CTRL-M select the next Parameter
Shift-Space key, enter space, do not expand abbreviation
Alt-F1/Shift-F1 display/search javadoc
CTRL-shift-M Extraction Method
Alt-U-G place get before identifier
Alt-U-S place set before identifier
Alt-U-I place "is" before the identifier
CTRL-backspace/del Delete previous/current word
CTRL-e Delete the current row
CTRL-J-S/e start/End recording macro
CTRL-shift-J insert an international string
CTRL-collapse (hide) code block on the keyboard
CTRL-expand the collapsed code block + on the keyboard
CTRL-shift-on the keyboard-collapse all code blocks
CTRL-shift-expand all code blocks + on the keyboard
Alt-enter display suggestion/prompt
Open and Switch views
Ctrl-Shift-0 Display Search Results window
Ctrl-0 display source code editor
Ctrl-1 display project window
Ctrl-2 display file window
Ctrl-3 display favorites window
Ctrl-4 display output window
Ctrl-5 display runtime window
The Ctrl-6 displays the pending items window
Ctrl-7 display navigation window
Ctrl-Shift-7 displays Properties dialog box
Ctrl-Shift-8 display component panel
Ctrl-8 display version control window
Ctrl-9 display VCs Output Window
Shift-F4 displays Document dialog box
Alt-move the left arrow key to the Left window
Alt-move the right arrow key to the right window
CTRL-tab (CTRL-') switches between opened documents
Shift-escape maximize window (switch)
Ctrl-F4/Ctrl-W close the currently selected window
Ctrl-Shift-F4 close all windows
Shift-F10 open context menu
Compile, test, and run
F9 compile the selected package or file
F11 generate main project
Shift-F11 cleanup and generate master project
CTRL-Q: Set Request Parameters
CTRL-shift-u create a JUnit Test
Ctrl-F6/Alt-F6 run JUnit testing for files/Projects
F6/Shift-F6 run main project/File
Debugging
F5 start debugging main project
The Ctrl-Shift-F5 starts debugging the current file
Ctrl-Shift-F6 starts testing for file debugging (Ju
Shift-F5/Ctrl-F5 stop/continue debugging session
Position of the F4 cursor in the file
F7/F8 step in/over
Ctrl-F7 step out
CTRL-alt-go to the called Method
CTRL-alt-go down to call Method
Ctrl-F9 calculates the value of the expression
Ctrl-F8 switching breakpoint
Ctrl-Shift-F8 new breakpoint
Ctrl-Shift-F7 new monitoring
Ctrl-Shift-5 display HTTP Monitor
Ctrl-Shift-0 Display Search Results window
Alt-shift-1 show "local variables" Window
Alt-shift-2 show monitoring window
Alt-shift-3: display the "call stack" Window
Alt-shift-4 show "class" Window
Alt-shift-5: display the "breakpoint" Window
Alt-shift-6 displays the "session" Window
Ctrl-Shift-6 switches to the execute window
Alt-shift-7 switch to the "Thread" Window
Alt-shift-8 switch to source window http://www.cnblogs.com/zhoujingxian/archive/2009/07/24/netbeans.html