Netbean frequently used shortcut keys (MAC)

Source: Internet
Author: User
Tags save file switch case netbeans

Shift+cmd+i: Import Package shift+alt+: Copy the current line, the mouse left on the previous line shift+alt+: Copy the current row, the mouse remains on the next line shift+ctrl+: Move the selected row up shift+ctrl+: Move the selected row down cmd +e: Delete entire line cmd+f: Find cmd+r: Replace ctrl+r: rename cmd+\: Code hint alt+enter: Error message ctrl+shift+f: Format code psvm+tab: Generate Main method Sout+tab: Generate output statement Shift+ctrl+o: Go to class Shift+ctrl+g: Go to class Cmd+o: Quick Open Class Cmd+w: Turn off class Ctrl+tab: Toggle Class Cmd+7: Open navigatorshift+esc: Full screen shift+→: Right-selected S hift+←: Select shift+cmd+→ to the left: select one row to the right shift+cmd+←: Select one row to the left shift+↑: select Shift+↓ right by line: Select--------------------------------- ------------------------------Other: 1, complete code: ctrl+\//Anywhere Press This key combination, will prompt the corresponding reference field; 2, error: ALT + Enter//As the name implies, when the system error, Press this combination to view the system prompts;
3, automatic completion of the string: Ctrl+l ctrl+k//The latter (ctrl+l not used) The combination of keys automatically typed strings, each hit a new string, sequence from the bottom up;
4. Right-click: Fix Auto Import
5. Right-click: Formatting code style
6. Import the required package: Ctrl+shift+i
7. Format code: ALT+SHIFT+F
8. Comments/Uncomment: ctrl+/, this feature supports multiple lines of comments, but first you need to select the lines you want to comment on
9. Psvm+tab generates the Main method
10, Sout + Tab//Generate OUTPUT statement
11, Ctrl+enter//Add blank line, the cursor does not move;
12, ALT+SHIFT+F//format, do not know what meaning, master can explain under;
13, Alt+enter//Not very likely to use;
13, Alt+insert//Insert code (including constructors, setters and getter methods, etc.);
14, Alt+shift+o//Go to class;
15, Ctrl+tab//In the open source file to switch;
16, Ctrl+o or ctrlt+ click//Go to the source, that is, hold down the Ctrl key and click a source to open the source code;
Add several:
SHIFT+F6//Run current program
CTRL+SHIFT+F5://debug Current program
Ctrl+f//Quick Find string in code
Ctrl+delete//is also a more commonly used shortcut, we can try;
Ctrl+shift+right//Right-selected individually
Ctrl+shift+left//left-selected individually
Ctrl+shift+up/down//Copy the current line to the next line, the cursor does not move

* New project: Ctrl-shift-n
* Automatic format code: ALT-SHIFT-F
* Save File: ctrl-s
* Code Completion: Ctrl-"
* Code AutoComplete: Default tab (I personally prefer spacebar, can be modified in "option-editor")
* Show Javadoc:alt-f1
* Run main project: F6
* Compile main project: SHIFT-F11
* Run File: Shift-f6
* New JUnit Test: ctrl-shift-u
* Run Test: ALT-F6
* Set Breakpoint: Ctrl-f8
* Debug Main project: Ctrl-f5
* Debug File: Ctrl-shift-f5
* Progressive Commissioning: F7

* Code AutoComplete: Ctrl-"This can automatically complete code such as creating objects
* Code Auto Insert: Alt-insert, this can automatically insert the code of the Getter-setter method
* Follow the prompts: Alt+enter, for example: Insert required packages or remove unused ingest packages
* Auto Fix Introduction Package: Ctrl-shift-i
* Individual fix Ingestion package: alt-shift-i
* Auto-paste code: ctrl-shift-up/down ARROW keys
* Auto-Move code: alt-shift-up/down ARROW keys
* Code template real-time auto-completion: Tab
* Variable rename: ctrl-r
* Javadoc pop-up box tip: ctrl-shift-space

The NetBeans shortcuts listed here are copied directly from one of NetBeans's documents and are conveniently accessible here. (Last updated 2007.03.30)

Find, search, and replace
CTRL-F3 searching for words at the insertion point
F3/shift-f3 Find Next/previous in file
ctrl-f/h Find/Replace in Files
Alt-f7 Find Use Instances
Ctrl-shift-p finding in a project
Alt-shift-u finding use instance results
Alt-shift-h Close Search Results highlighting
Alt-shift-l Next (all files) in the Jump List
Alt-shift-k the previous (all files) in the Jump List
Ctrl-r Reloading a form
Alt-u-u converting the selection to uppercase
Alt-u-l converting the selection to lowercase
Alt-u-r Switch case to selection

Navigating in the source code
Alt-shift-o go to class
ALT-SHIFT-E go to JUnit test
Alt-o go to Source code
Alt-g go to Declaration
Ctrl-b go to Super implementation
Alt-k/alt-l Back/forward
Ctrl-g Go to Line
CTRL-F2 Toggle Add/Remove Bookmarks
F2/SHIFT-F2 Next/Previous bookmark
F12/SHIFT-F12 Next/Previous usage instance/compilation error
CTRL-SHIFT-1/2/3 select in Project/File/Favorites
ctrl-[to move the caret to a matching square bracket
ctrl-^ ctrl-[(French/Belgian keyboard)

Code in Java
Ctrl-i Coverage method
alt-shift-f/i repair of all/Selected classes
Alt-shift-w with Try-catch block around
Ctrl-shift-f to reset the selected content
Ctrl-d/ctrl-t left/Right shift one tab
CTRL-SHIFT-T/D Add/Revoke comment lines ("//
ctrl-l/k Insert next/previous horse
esc/ctrl-SPACEBAR to close/open code completion
CTRL-M Select the next parameter
shift-SPACEBAR to enter a space, do not expand abbreviations
ALT-F1/SHIFT-F1 Display/Search Javadoc
Ctrl-shift-m Extraction Method
Alt-u-g "Get" is placed before the identifier
Alt-u-s placing "set" in front of an identifier
Alt-u-i put "is" in front of the identifier
Ctrl-backspace/del Delete previous/current word
CTRL-E Delete When moving forward
ctrl-j-s/e Start/End Recording macro
Ctrl-shift-j inserting internationalized Strings
Ctrl-Numeric keypad-collapsed (hidden) block of code
+ Expand collapsed code block on Ctrl-Numeric keypad
ctrl-shift--Collapse All code blocks on the numeric keypad
ctrl-shift-+ Expand All code blocks on the numeric keypad
Alt-enter Show Suggestions/hints

Open and Toggle views
ctrl-shift-0 Display the Search results window
Ctrl-0 Display source Code Editor
CTRL-1 Display the Projects window
Ctrl-2 Displaying the Files window
Ctrl-3 Display the Favorites window
Ctrl-4 Display the Output window
Ctrl-5 Display the "Run Environment" window
Ctrl-6 Show the Todo window
Ctrl-7 Display the Navigator window
Ctrl-shift-7 Display the Properties dialog box
Ctrl-shift-8 Display Palette
Ctrl-8 to display the version control window
Ctrl-9 Display the VCS Output window
SHIFT-F4 Display the Document dialog box
Alt-left arrow moves to left window
alt-right ARROW key to right window
Ctrl-tab (CTRL ') switch between open documents
Shift-escape Maximize window (toggle)
Ctrl-f4/ctrl-w close the currently selected window
Ctrl-shift-f4 Close All windows
SHIFT-F10 Open Context Menu

Compiling, testing, and running
F9 compiling the selected package or file
F11 Building the main project
SHIFT-F11 clean and build the main project
Ctrl-q Setting Request Parameters
Ctrl-shift-u Creating JUnit Tests
CTRL-F6/ALT-F6 running JUnit tests for files/projects
F6/shift-f6 running the main project/file

Debugging
F5 Start debugging the main project
Ctrl-shift-f5 Start debugging the current file
CTRL-SHIFT-F6 Start debugging Tests for files (JU
Shift-f5/ctrl-f5 Stop/Resume debugging session
F4 the cursor position to run to the file
F7/f8 step in/Over
Ctrl-f7 Step Out
ctrl-alt-up ARROW key go to called method
Ctrl-alt-down ARROW key to call method
CTRL-F9 evaluating the value of an expression
Ctrl-f8 Toggle Breakpoint
Ctrl-shift-f8 New Breakpoint
CTRL-SHIFT-F7 New Watch
Ctrl-shift-5 displaying the HTTP monitor
ctrl-shift-0 Display the Search results window
Alt-shift-1 Show Local Variables window
Alt-shift-2 Display the Watch window
alt-shift-3 Display the Call Stack window
Alt-shift-4 Display the Classes window
alt-shift-5 Display the Breakpoints window
Alt-shift-6 Display the Sessions window
Ctrl-shift-6 switch to the Execute window
Alt-shift-7 switch to the Threads window
Alt-shift-8 switch to the source window

Netbean frequently used shortcut keys (MAC)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.