Menu Shortcuts

See Also

There are keyboard shortcuts available to activate the following menu commands and other general commands:

File Menu

Keys Command Action
Ctrl-Shift-N New Creates a new project with the New Project wizard.
Ctrl-N New Creates a new file with the New File wizard.
Ctrl-Shift-O Open File Opens an existing project.
Ctrl-O Open File Opens an existing file.
Ctrl-S Save Saves the current file.
Ctrl-P Print Prints the current file.

Edit Menu

Keys Command Action
Ctrl-Z Undo Reverses (one at a time) a series of editor actions, except Save.
Ctrl-Y Redo Reverses (one at a time) a series of Undo commands.
Ctrl-X Cut Deletes the current selection and places it on the clipboard.
Ctrl-C Copy Copies the current selection to the clipboard.
Ctrl-V Paste Pastes the contents of the clipboard into the insertion point.
Delete Delete Deletes the current selection.
Ctrl-F Find Finds a text string.
Ctrl-H Replace Finds a string of text and replaces it with the string specified.
Alt-F7 Find Usages Finds usages and subtypes of selected code.
Ctrl-Shift-P Find in Projects Finds specified text, object names, object types modified in a specified time period within all open projects.
Ctrl-G Go to Line Goes to any specified line.
Alt-Shift-O Go to Class Displays the source file containing the definition of the selected class.

View Menu

Keys Command Action
Ctrl-Numpad- - Collapse Fold Compiles all of a project's uncompiled and out-of-date class files, that have been changed or that have not been previously compiled.
Ctrl-Numpad- + Expand Fold Compiles all of the current project's classes and the classes they are dependent on whether or not they were previously compiled.
Ctrl-Shift-Numpad- - Collapse All Specifies the main class of a project.
Ctrl-Shift-Numpad- + Expand All Runs the current project.

Build Menu

Keys Command Action
F11 Build Main Project Compiles the file. If you select a folder, the IDE compiles all files regardless of whether they have changed since the last compile.
Shift-F11 Clean and Build Main Project Compiles the file. If you select a folder, the IDE compiles all files regardless of whether they have changed since the last compile.
F9 Compile File Compiles the file. If you select a folder, the IDE compiles only the files that are new or have changed since the last compile.
F12 Next Error Scrolls the Source Editor to the line that contains the next build error.
Shift-F12 Previous Error Scrolls the Source Editor to the line that contains the previous build error.

Run Menu

Keys Command Action
F6 Run Main Project Runs the main project.
F5 Debug Main Project Debugs the main project.
Alt-F6 Test Project Starts JUnit test for project.
Shift-F6 Run File Starts JUnit test for project.
Ctrl-Shift-F5 Debug File Starts debugging session for current file.
Ctrl-F6 Test File Starts JUnit test for current file.
Ctrl-Shift-F6 Debug Test for File Starts debugging test for file in JUnit.
Shift-F5 Finish Debugger Session Ends the dugging session.
Ctrl-F5 Continue Resumes debugging until the next breakpoint or the end of the program is reached.
F8 Step Over Executes one source line of a program. If the line is a method call, executes the entire method then stops.
F7 Step Into Executes one source line of a program. If the line is a method call, executes the program up to the method's first statement and stops.
Ctrl-F7 Step Out Executes one source line of a program. If the line is a method call, executes the methods and returns control to the caller.
F4 Run to Cursor Runs the current project to the cursor's location in the file and stop program execution.
Ctrl-Alt-Up Make Callee Current Makes the method being called the current call. Only available when a call is selected in the Call Stack window.
Ctrl-Alt-Down Make Caller Current Makes the calling method the current call. Only available when a call is selected in the Call Stack window.
Ctrl-F8 Toggle Breakpoint Adds a line breakpoint or removes the breakpoint at the cursor location in the program.
Ctrl-Shift-F8 New Breakpoint Sets a new breakpoint at the specified line, exception, or method.
Ctrl-Shift-F7 New Watch Adds the specified variable to watch.

Tools Menu

Keys Command Action
Ctrl-Shift-J Insert Internationalized String Enables you to add an internationalization string as you create the source.
Shift-F1 Javadoc Index Search Lets you search the Javadoc index.

Window Menu

Keys Command Action
Ctrl-0 Source Editor Switches to the Source Editor.
Ctrl-1/Ctrl-Shift-1 Projects Opens the Projects window.
Ctrl-2/Ctrl-Shift-2 Files Opens the Files window.
Ctrl-3/Ctrl-Shift-3 Favorites Opens the Favorites window.
Ctrl-4 Output Window Opens the Output window.
Ctrl-5 Runtime Opens the Runtime window.
Ctrl-Shift-5 HTTP Monitor Opens the HTTP Monitor.
Ctrl-6 To Do Opens the To Do window.
Ctrl-7 Navigator Opens the Navigator window.
Ctrl-8/Ctrl-Shift-8 Versioning Opens the Versioning window.
Ctrl-9 Versioning ;> VCS Output Opens the VCS Output window.
Alt-Shift-1 Debugging > Local Variables Opens the Local Variables debugger window.
Alt-Shift-2 Debugging > Watches Opens the Watches debugger window.
Alt-Shift-3 Debugging > Call Stack Opens the Call Stack debugger window.
Alt-Shift-4 Debugging > Classes Opens the Classes debugger window.
Alt-Shift-5 Debugging > Breakpoints Opens the Breakpoints debugger window.
Alt-Shift-6 Debugging > Sessions Opens the Sessions debugger window.
Alt-Shift-7 Debugging > Threads Opens the Threads debugger window.
Alt-Shift-8 Debugging > Sources Opens the Sources window.
Ctrl-Tab (Ctrl-') Switch to Recent Window Toggles through the open windows in the order that they were last used. The dialog box displays all open windows and each of the open documents in the Source Editor.
Shift-Escape Maximize Maximizes the Source Editor or the present window.
Ctrl-F4 Close Closes the current tab in the current window. If the window has no tabs, the whole window is closed.
Ctrl-Shift-F4 Close All Documents Closes all open documents in the Source Editor.
Shift-F4 Documents Opens the Documents dialog box, in which you can save and close groups of open documents.
Alt-right Next Tab Displays the next tab in the current window.
Alt-left Previous Tab Displays the previous tab in the current window..

Help Menu

Keys Command Action
F1 Help Displays the JavaHelp viewer with all installed help sets.
See Also
Setting Keyboard Shortcuts
Editor Shortcuts
Window Navigation Shortcuts
Help Viewer Shortcuts

Legal Notices