Shortcuts MPS for Windows

174 shortcuts2,395 views
Open Trainer

Advanced Editing

WindowsAction
Ctrl+/Comment/uncomment current line or selected block with line comments
Ctrl+Shift+/Comment/uncomment code with block comments
Ctrl+Shift+Alt+HShow the Highlighting level pop-up window to configure highlighting in the current file
Ctrl+PShow parameters of the method call at the caret
Alt+QShow the current method or class declaration when it is not visible
Ctrl+F1Show an error or warning description at the caret
Shift+F1Open browser with the documentation for the selected item
Ctrl+OOverride base class methods in the current class
Ctrl+Alt+TSurround selected code fragment with if, do, tags or other constructs
Ctrl+SpacebarCode completion for any class, method or variable
Ctrl+Shift+SpacebarCode Completion filtering the lookup list basing on expected type
Alt+/Goes through the names of classes, methods, keywords and variables in the current visibility scope
Ctrl+JShow a pop-up list of starting with a specified prefix
Ctrl+Alt+JSurround the selection with one of the templates
TabIn templates: move the caret to the next template variable
Shift+TabIn templates: move the caret to the previous template variable

Basic Editing

WindowsAction
BackspaceDelete a character to the left of the caret
Ctrl+ZUndo last operation
Ctrl+Shift+ZRedo last undone operation
Ctrl+XCut a current line or a selected code block to the Clipboard
Ctrl+CCopy a current line or a selected code block to the Clipboard
Ctrl+VPaste from the Clipboard to the caret location
Ctrl+Shift+VPaste selected entry from the Clipboard to the caret location
Up ArrowMove the caret one line up
Shift+Up ArrowMove the caret one line up selecting the text
Down ArrowMove the caret one line down
Shift+Down ArrowMove the caret one line down selecting the text
Left ArrowMove the caret one character to the left
Shift+Left ArrowMove the caret one character to the left selecting the text
Right ArrowMove the caret one character to the right
Shift+Right ArrowMove the caret one character to the right selecting the text
Ctrl+PgDnMove the caret down to the page bottom
Ctrl+Shift+PgDnMove the caret down to the page bottom, selecting the text
Ctrl+PgUpMove the caret up to the page top
Ctrl+Shift+PgUpMove the caret up to the page bottom, selecting the text
PgDnMove the caret one Page down
Shift+PgDnMove the caret one Page down, selecting the text
PgUpMove the caret one Page up
Shift+PgUpMove the caret one Page up, selecting the text
Ctrl+Down ArrowScroll the text one line down
Ctrl+MScroll a line at caret to the center of the screen
Ctrl+Up ArrowScroll the text one line up
EndMove the caret to the end of line
Shift+EndMove the caret to the end of line, selecting the text
HomeMove the caret to the beginning of line
Shift+HomeMove the caret to the beginning of line, selecting the text
Ctrl+Right ArrowMove the caret to the next word
Ctrl+Shift+Right ArrowMove the caret to the next word, selecting it
Ctrl+Left ArrowMove the caret to the previous word
Ctrl+Shift+Left ArrowMove the caret to the previous word, selecting it
Ctrl+EndMove the caret to the end of text
Ctrl+Shift+EndMove the caret to the end of text, selecting it
Ctrl+HomeMove the caret to the beginning of text
Ctrl+Shift+HomeMove the caret to the beginning of text, selecting it
Ctrl+ASelect the entire text opened in the editor
Ctrl+YDelete the line where the caret is currently located
Ctrl+DeleteDelete the word starting from the current caret location up to the word end
Ctrl+BackspaceDelete the word starting from the current caret location up to the word start
InsertToggle insert/overwrite modes
Ctrl+DDuplicate selected block or the line at the caret
Ctrl+Shift+UToggle case of the selected text block
Ctrl+]Move the caret to the current code block end, highlighting the block limits
Ctrl+Shift+]Move the caret to the current code block end, selecting the code beginning from the initial caret location
Ctrl+[Move the caret to the current code block start, highlighting the block limits
Ctrl+Shift+[Move the caret to the current code block start, selecting the code beginning from the initial caret location
Shift+EnterStart a new line after the current one positioning the caret in accordance with the current indentation level
Ctrl+Alt+EnterStart a new line before the current one
Ctrl+Shift+JConcatenate the selected lines into one or concatenate the line where the caret is currently located with the next line
Ctrl+EnterSplit the selected line at the point where the caret is located, leaving the caret at the end of the first line
Ctrl+WSelect successively increasing code blocks starting from the current caret location
Ctrl+Shift+WRemove sequentially the selection made by the action
TabMove the selected block to the next indentation level
Shift+TabMove the selected block to the previous indentation level
Ctrl+Alt+IIndent the current line or selected block according to the General settings

Code Folding

WindowsAction
Ctrl+NumPad+Expand the current collapsed fragment
Ctrl+NumPad -Collapse the current folding region
Ctrl+Alt+NumPad+Expand the current folded fragment and all the subordinate collapsed folding regions within that fragment
Ctrl+Alt+NumPad -Collapse the current folding region and all the subordinate folding regions within it
Ctrl+Shift+NumPad+Expand all collapsed fragments within the selection, or, if nothing is selected, expand all the collapsed fragments in the current file
Ctrl+Shift+NumPad -Collapse all folding regions within the selection, or, if nothing is selected, collapse all the folding regions in the current file
Ctrl+NumPad 1..5Expand the current fragment and all the nested fragments up to the specified level
Ctrl+Shift+NumPad 1..5Expand all the collapsed fragments in the file up to the specified nesting level
Ctrl+.Collapse the selected fragment and create a custom folding region for it to make it "foldable" / Expand the current fragment and remove the corresponding custom folding region to make the fragment "unfoldable"

Running and Debugging

WindowsAction
Shift+F10Run a program
Shift+Alt+F10Quickly select run/debug configuration and run or edit it
Ctrl+F5Repeat execution with the same settings, with the same tab of the Run tool window having the focus
Shift+F10Repeat execution with the same settings, with the same tab of the editor having the focus
Shift+F9Debug a program
Shift+Alt+F9Quickly select run/debug configuration and debug or edit it
F8Step to the next line in the current file See Stepping Through the Program
F7Step to the next executed line See Stepping Through the Program
Shift+F7Select the method to step in, if the current line contains multiple method call expressions See Choosing a Method to Step Into
Shift+F8Step to a first executed line after returning from the current method See Stepping Through the Program
Shift+Alt+F8Run until the next line in this method or file, skipping the methods referenced at the current execution point and ignoring breakpoints See Stepping Through the Program
Shift+Alt+F7Steps into the method called in the current execution point even if this method is to be skipped See Stepping Through the Program
Alt+F9Run to the line where the caret is located See Stepping Through the Program
Ctrl+Alt+F9Run to the line where the caret is located, ignoring breakpoints See Stepping Through the Program
F9Resume program execution
Shift+F2Terminate a debugging session
Alt+F8Evaluate an arbitrary expression
Ctrl+Alt+F8Evaluate an arbitrary expression without calling Evaluate Expression dialog
Ctrl+F8Toggle breakpoint at the current line
Ctrl+Shift+F8View/manage all breakpoints

General Shortcuts

WindowsAction
Ctrl+Shift+F4Close an active tab in a tool window (for example, Find tool window)
Ctrl+F4Close an active editor
F4Open an editor for the selected item or items and give focus to the last opened file
Alt+OExport contents of a tool window to a text file This feature applies to the Version Control Tool Window, Messages Tool Window, and other tool windows that provide the export button  on the window toolbar
Alt+InsertCreate a new class, file or directory See Populating Modules
Ctrl+SSave all files and settings
Alt+Right ArrowWhen several tabs are open in the editor or a view, open the next tab to the right (or first tab if the current one is the last)
Alt+Left ArrowWhen several tabs are open in the editor or a view, open the next tab to the left (or last tab if the current one is the first)
Alt+EnterDisplay intention actions (if any) for the code where the caret is currently located, or the selected GUI component in a form
Ctrl+Alt+YDetect all externally changed files and reload them from disk

Search

WindowsAction
Ctrl+FInitiate text search
Ctrl+RInitiate text search and replace
F3/Shift+F3Navigate to the next/previous occurrence of a selected word in the editor
Ctrl+F3Search in the editor for the word where the caret is currently located
Ctrl+FInitiate text search
Ctrl+Shift+FInitiate search for a text string in the specified scope
Ctrl+Shift+RInitiate search and replace in the specified scope
Alt+F7Initiate search for usages of the selected symbol in the specified scope
Ctrl+F7Initiate search for usages of the selected symbol in the current file
Ctrl+Shift+F7Highlight usages of a symbol at caret
Ctrl+Alt+F7Show usages of a symbol at caret in a pop-up window Use list of found usages to jump to the desired location
Ctrl+Shift+AFind an action, bypassing menus See Finding Actions

Navigation between Bookmarks

WindowsAction
Ctrl+Specified NumberNavigate to a numbered bookmark with the corresponding number
F11Turn anonymous bookmark on or off
Ctrl+F11Turn bookmark with mnemonic on or off
Shift+F11Open Bookmarks dialog to manage existing bookmarks and navigate between them

Navigation between IDE Components

WindowsAction
Alt+F1Move focus from the current file, class, method or reference to a data source, to a view suggested in the Select Target pop-up menu Refer to Navigating Between IDE Components
Ctrl+NumPad -Collapse all nodes in a tree view
Ctrl+NumPad+Expand all nodes in a tree view
Ctrl+TabNavigate between files opened in the editor, and tool windows
Alt+NumberOpen a tool window with the specified number
Shift+EscHide the currently active tool window
F12Activate the last focused tool window

Navigation between Source Code

WindowsAction
Ctrl+F12Display the Structure pop-up window for quick navigation through the current file
Alt+F1Move focus from the current file, class, method or reference to a data source table to a view suggested in the Select Target pop-up menu See Navigating Between IDE Components
Ctrl+EShow the list of recently opened files
Ctrl+Shift+EShow the list of recently updated files
Ctrl+HBrowse hierarchy for the selected class class
Ctrl+NNavigate directly to a class in project by specifying its name in a pop-up dialog box
Ctrl+Shift+NNavigate directly to a file in project by specifying its name in a pop-up dialog box
Ctrl+EShow the list of recently opened files
Ctrl+Shift+EShow the list of recently updated files
Ctrl+GNavigate to any line in the current file by specifying its number
Ctrl+BNavigate to declaration of a symbol at caret
Ctrl+Alt+BNavigate to implementation of the item at caret
Ctrl+Shift+BNavigate to a type declaration of a symbol at caret, the symbol being a variable or a method call
Ctrl+UNavigate to a super method declaration of a method under the caret
Ctrl+Shift+TNavigate to a test for the class at caret, if any, or navigate from a test to a test subject
Ctrl+Alt+HomeNavigate between files with complicated relationships between them
Alt+Down ArrowNavigate to the next method declaration in the active editor tab
Alt+Up ArrowNavigate to the previous method declaration in the active editor tab
Ctrl+[Navigate to the start of the current code block
Ctrl+]Navigate to the end of the current code block
Ctrl+Alt+Left ArrowUndo last navigation operation
Ctrl+Alt+Right ArrowRedo last undone navigation operation
Ctrl+Alt+Up ArrowNavigate to a previous found item
Ctrl+Alt+Down ArrowNavigate to a next found item
Ctrl+Shift+BackspaceMove through the most recent change points
F2Navigate to the next found error/warning
Shift+F2Navigate to the previous found error/warning

Refactoring

WindowsAction
Shift+F6Rename the selected file, class, field, method, etc and change all references to it accordingly
Ctrl+F6Change the signature of the selected method and update all the corresponding method calls
F6Move the selected class, package or static member to another package or class and update all the corresponding references
F5Create a copy of the selected class, file or directory in the same or different directory or package
Alt+DeleteDelete the selected class, method or field checking its usages
Ctrl+Alt+MTurn the selected code fragment into a method
Ctrl+Alt+VCreate a new variable and use the selected expression as its value
Ctrl+Alt+FCreate a new field and use the selected expression as its value
Ctrl+Alt+CCreate a new constant (static final field) and use the selected expression as its value
Ctrl+Alt+PTurn the selected expression into a new method parameter
Ctrl+Alt+NInline the selected method or variable