Hotkeys and shortcuts for PyCharm 2018.2

(Total 176)

Ctrl + /
Advanced editing
Comment/uncomment current line or selected block with line comments.
Ctrl + ↑   Shift + /
Advanced editing
Comment/uncomment code with block comments.
Ctrl + Q
Advanced editing
Show a pop-up window with the documentation for the symbol at the caret.
Alt + Mouse right click
Advanced editing
Show a pop-up window with the documentation for the symbol at the caret.
Ctrl + ↑   Shift + Alt + H
Advanced editing
Show the Highlighting level pop-up window to configure highlighting in the current file.
Ctrl + P
Advanced editing
Show parameters of the method call at the caret.
Alt + Q
Advanced editing
Show the current method or class declaration when it is not visible.
Ctrl + F1
Advanced editing
Show an error or warning description at the caret.
↑   Shift + F1
Advanced editing
Open browser with the documentation for the selected item.
Ctrl + O
Advanced editing
Override base class methods in the current class.
Ctrl + Alt + T
Advanced editing
Surround selected code fragment with if, do, tags or other constructs.
Ctrl + Space
Advanced editing
Code completion for any class, method or variable.
Alt + /
Advanced editing
Goes through the names of classes, methods, keywords and variables in the current visibility scope.
Ctrl + ↑   Shift + Space
Advanced editing
Code Completion filtering the lookup list basing on expected type.
Ctrl + J
Advanced editing
Show a pop-up list of starting with a specified prefix.
Ctrl + Alt + J
Advanced editing
Surround the selection with one of the templates.
⭾ Tab
Basic editing
Move the selected block to the next indentation level.
↑   Shift + ⭾ Tab
Basic editing
Move the selected block to the previous indentation level.
⤶ Enter
Basic editing
In the editor: enter a new line and set the caret at its beginning. On pressing Enter, PyCharm adds backslash character to avoid syntactical errors.
Del
Basic editing
In other views: remove selected items
⬅ Backspace
Basic editing
Delete a character to the left of the caret.
Ctrl + Z
Basic editing
Undo last operation.
Ctrl + ↑   Shift + Z
Basic editing
Redo last undone operation.
Ctrl + X
Basic editing
Cut a current line or a selected code block to the Clipboard.
Ctrl + C
Basic editing
Copy a current line or a selected code block to the Clipboard.
Ctrl + V
Basic editing
Paste from the Clipboard to the caret location.
Ctrl + ↑   Shift + V
Basic editing
Paste selected entry from the Clipboard to the caret location.
Basic editing
Move the caret one line up.
↑   Shift +
Basic editing
Move the caret one line up selecting the text.
Basic editing
Move the caret one line down.
↑   Shift +
Basic editing
Move the caret one line down selecting the text.
Basic editing
Move the caret one character to the left.
↑   Shift +
Basic editing
Move the caret one character to the left selecting the text.
Basic editing
Move the caret one character to the right.
↑   Shift +
Basic editing
Move the caret one character to the right selecting the text.
Ctrl + Page Down
Basic editing
Move the caret down to the page bottom.
Ctrl + Shift + Page Down
Basic editing
Move the caret down to the page bottom, selecting the text.
Ctrl + Page Up
Basic editing
Move the caret up to the page top.
Ctrl + Shift + Page Up
Basic editing
Move the caret up to the page bottom, selecting the text.
Page Down
Basic editing
Move the caret one page down.
Shift + Page Down
Basic editing
Move the caret one page down, selecting the text.
Page Up
Basic editing
Move the caret one page up.
Shift + Page Up
Basic editing
Move the caret one page up, selecting the text.
Ctrl +
Basic editing
Scroll the text one line down.
Ctrl + M
Basic editing
Scroll a line at caret to the center of the screen.
Ctrl +
Basic editing
Scroll the text one line up.
End
Basic editing
Move the caret to the end of line.
↑   Shift + End
Basic editing
Move the caret to the end of line, selecting the text.
Home
Basic editing
Move the caret to the beginning of line.
↑   Shift + Home
Basic editing
Move the caret to the beginning of line, selecting the text.
Ctrl +
Basic editing
Move the caret to the next word.
Ctrl + ↑   Shift +
Basic editing
Move the caret to the next word, selecting it.
Ctrl +
Basic editing
Move the caret to the previous word.
Ctrl + ↑   Shift +
Basic editing
Move the caret to the previous word, selecting it.
Ctrl + End
Basic editing
Move the caret to the end of text.
Ctrl + ↑   Shift + End
Basic editing
Move the caret to the end of text, selecting it.
Ctrl + Home
Basic editing
Move the caret to the beginning of text.
Ctrl + ↑   Shift + Home
Basic editing
Move the caret to the beginning of text, selecting it.
Ctrl + A
Basic editing
Select the entire text opened in the editor.
Ctrl + Y
Basic editing
Delete the line where the caret is currently located.
Ctrl + Del
Basic editing
Delete the word starting from the current caret location up to the word end.
Ctrl + ⬅ Backspace
Basic editing
Delete the word starting from the current caret location up to the word start.
Insert
Basic editing
Toggle insert/overwrite modes.
Ctrl + D
Basic editing
Duplicate selected block or the line at the caret.
Ctrl + ↑   Shift + U
Basic editing
Toggle case of the selected text block.
Ctrl + ]
Navigation in source code
Navigate to the end of the current code block.
Ctrl + ↑   Shift + ]
Basic editing
Move the caret to the current code block end, selecting the code beginning from the initial caret location.
Ctrl + [
Navigation in source code
Navigate to the start of the current code block.
Ctrl + ↑   Shift + [
Basic editing
Move the caret to the current code block start, selecting the code beginning from the initial caret location.
↑   Shift + ⤶ Enter
Basic editing
Start a new line after the current one positioning the caret in accordance with the current indentation level.
Ctrl + Alt + ⤶ Enter
Basic editing
Start a new line before the current one.
Ctrl + ↑   Shift + J
Basic editing
Concatenate the selected lines into one or concatenate the line where the caret is currently located with the next line.
Ctrl + ⤶ Enter
General
In the editor: Intelligently split the current line into 2 lines, shifting quotes, etc. as necessary.
Ctrl + W
Basic editing
Select successively increasing code blocks starting from the current caret location.
Ctrl + ↑   Shift + W
Basic editing
Remove sequentially the selection made by the action.
Ctrl + Alt + I
Basic editing
Indent the current line or selected block according to the Code Style settings.
Ctrl + Num +
Navigation Between IDE Components
Expand all nodes in a tree view.
Ctrl + Num -
Navigation Between IDE Components
Collapse all nodes in a tree view.
Ctrl + Alt + Num +
Code folding
Expand the current folded fragment and all the subordinate collapsed folding regions within that fragment
Ctrl + Alt + Num -
Code folding
Collapse the current folding region and all the subordinate folding regions within it
Ctrl + ↑   Shift + Num +
Code folding
Expand all collapsed fragments within the selection, or, if nothing is selected, expand all the collapsed fragments in the current file
Ctrl + ↑   Shift + Num -
Code folding
Collapse all folding regions within the selection, or, if nothing is selected, collapse all the folding regions in the current file
Ctrl + Num * then 1
Code folding
Expand the current fragment and all the nested fragments up to the specified level
Ctrl + Num * then 2
Code folding
Expand the current fragment and all the nested fragments up to the specified level
Ctrl + Num * then 3
Code folding
Expand the current fragment and all the nested fragments up to the specified level
Ctrl + Num * then 4
Code folding
Expand the current fragment and all the nested fragments up to the specified level
Ctrl + Num * then 5
Code folding
Expand the current fragment and all the nested fragments up to the specified level
Ctrl + ↑   Shift + Num * then 1
Code folding
Expand all the collapsed fragments in the file up to the specified nesting level
Ctrl + ↑   Shift + Num * then 2
Code folding
Expand all the collapsed fragments in the file up to the specified nesting level
Ctrl + ↑   Shift + Num * then 3
Code folding
Expand all the collapsed fragments in the file up to the specified nesting level
Ctrl + ↑   Shift + Num * then 4
Code folding
Expand all the collapsed fragments in the file up to the specified nesting level
Ctrl + ↑   Shift + Num * then 5
Code folding
Expand all the collapsed fragments in the file up to the specified nesting level
Ctrl + .
Code folding
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"
↑   Shift + F10
Running and debugging
Repeat execution with the same settings, with the same tab of the editor having the focus.
↑   Shift + Alt + F10
Running and debugging
Quickly select run/debug configuration and run or edit it.
Ctrl + F5
Running and debugging
Repeat execution with the same settings, with the same tab of the Run tool window having the focus.
↑   Shift + F9
Running and debugging
Debug a program.
↑   Shift + Alt + F9
Running and debugging
Quickly select run/debug configuration and debug or edit it.
F8
Running and debugging
Step to the next line in the current file. See Stepping Through the Program.
F7
Navigation Between IDE Components
Navigate to the next difference in view.
↑   Shift + F7
Navigation Between IDE Components
Navigate to the previous difference in view.
↑   Shift + F8
Running and debugging
Step to a first executed line after returning from the current method. See Stepping Through the Program.
↑   Shift + Alt + F8
Running and debugging
Run 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 + F7
Running and debugging
Steps into the method called in the current execution point even if this method is to be skipped. See Stepping Through the Program.
Alt + F9
Running and debugging
Run to the line where the caret is located. See Stepping Through the Program.
Ctrl + Alt + F9
Running and debugging
Run to the line where the caret is located, ignoring breakpoints. See Stepping Through the Program.
F9
Running and debugging
Resume program execution.
↑   Shift + F2
Navigation in source code
Navigate to the previous found error/warning.
Alt + F8
Running and debugging
Evaluate an arbitrary expression.
Ctrl + Alt + F8
Running and debugging
Evaluate an arbitrary expression without calling Evaluate Expression dialog.
Ctrl + F8
Running and debugging
Toggle breakpoint at the current line.
Ctrl + ↑   Shift + F8
Running and debugging
View/manage all breakpoints.
Ctrl + ↑   Shift + F4
General
Close an active tab in a tool window (for example, Find tool window).
Ctrl + F4
General
Close an active editor.
F4
General
Open an editor for the selected item or items and give focus to the last opened file.
Esc
General
In a tool window: return focus to the editor.
Alt + O
General
Export contents of a tool window to a text file. This feature applies to the Version Control Tool Window, Messages Tool Window, and the other tool windows that provide the export button icons toolbarDecorator export svg on the window toolbar.
Alt + Insert
General
Create a new class, file or directory. See Populating Modules.
Ctrl + S
General
Save all files and settings.
Alt +
General
When 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 +
General
When 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 + ⤶ Enter
General
Display intention actions (if any) for the code where the caret is currently located, or the selected GUI component in a form.
Ctrl + Alt + Y
General
Detect all externally changed files and reload them from disk.
Ctrl + F
Search
Initiate text search.
Ctrl + R
Search
Initiate text search and replace.
F3
Search
Navigate to the next/previous occurrence of a selected word in the editor.
↑   Shift + F3
Search
Navigate to the next/previous occurrence of a selected word in the editor.
Ctrl + F3
Search
Search in the editor for the word where the caret is currently located.
Ctrl + ↑   Shift + F
Search
Initiate search for a text string in the specified scope.
Ctrl + ↑   Shift + R
Search
Initiate search and replace in the specified scope.
Alt + F7
Search
Initiate search for usages of the selected symbol in the specified scope.
Ctrl + F7
Search
Initiate search for usages of the selected symbol in the current file.
Ctrl + ↑   Shift + F7
Search
Highlight usages of a symbol at caret.
Ctrl + Alt + F7
Search
Show usages of a symbol at caret in a pop-up window. Use list of found usages to jump to the desired location
Ctrl + ↑   Shift + A
Search
Find an action, bypassing menus. See Finding Actions.
Ctrl + 1 - 9
Navigation between bookmarks
Navigate to a numbered bookmark with the corresponding number.
F11
Navigation between bookmarks
Turn anonymous bookmark on or off.
Ctrl + F11
Navigation between bookmarks
Turn bookmark with mnemonic on or off.
↑   Shift + F11
Navigation between bookmarks
Open Bookmarks dialog to manage existing bookmarks and navigate between them.
Alt + F1
Navigation in source code
Move 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 + ⭾ Tab
Navigation Between IDE Components
Navigate between files opened in the editor, and tool windows.
Alt + 1 - 9
Navigation Between IDE Components
Open a tool window with the specified number.
↑   Shift + Esc
Navigation Between IDE Components
Hide the currently active tool window.
F12
Navigation Between IDE Components
Activate the last focused tool window.
Ctrl + F12
Navigation in source code
Display the Structure pop-up window for quick navigation through the current file.
Ctrl + E
Navigation in source code
Show the list of recently opened files.
Ctrl + ↑   Shift + E
Navigation in source code
Show the list of recently updated files .
Ctrl + H
Navigation in source code
Browse hierarchy for the selected class class.
Ctrl + N
Navigation in source code
Navigate directly to a class in project by specifying its name in a pop-up dialog box.
Ctrl + ↑   Shift + N
Navigation in source code
Navigate directly to a file in project by specifying its name in a pop-up dialog box.
Ctrl + G
Navigation in source code
Navigate to any line in the current file by specifying its number.
Ctrl + B
Navigation in source code
Navigate to declaration of a symbol at caret.
Ctrl + Alt + B
Navigation in source code
Navigate to implementation of the item at caret.
Ctrl + ↑   Shift + B
Navigation in source code
Navigate to a type declaration of a symbol at caret, the symbol being a variable or a method call.
Ctrl + U
Navigation in source code
Navigate to a super method declaration of a method under the caret.
Ctrl + ↑   Shift + T
Navigation in source code
Navigate to a test for the class at caret, if any, or navigate from a test to a test subject.
Ctrl + Alt + Home
Navigation in source code
Navigate between files with complicated relationships between them. For example, use this shortcut to navigate between views and templates
Alt +
Navigation in source code
Navigate to the next method declaration in the active editor tab.
Alt +
Navigation in source code
Navigate to the previous method declaration in the active editor tab.
Ctrl + Alt +
Navigation in source code
Undo last navigation operation.
Ctrl + Alt +
Navigation in source code
Redo last undone navigation operation.
Ctrl + Alt +
Navigation in source code
Navigate to a previous found item.
Ctrl + Alt +
Navigation in source code
Navigate to a next found item.
Ctrl + ↑   Shift + ⬅ Backspace
Navigation in source code
Move through the most recent change points.
F2
Navigation in source code
Navigate to the next found error/warning.
↑   Shift + F6
Refactoring
Rename the selected file, class, field, method, etc. and change all references to it accordingly.
Ctrl + F6
Refactoring
Change the signature of the selected method and update all the corresponding method calls.
F6
Refactoring
Move the selected class, package or static member to another package or class and update all the corresponding references.
F5
Refactoring
Create a copy of the selected class, file or directory in the same or different directory or package.
Alt + Del
Refactoring
Delete the selected class, method or field checking its usages.
Ctrl + Alt + M
Refactoring
Turn the selected code fragment into a method.
Ctrl + Alt + V
Refactoring
Create a new variable and use the selected expression as its value.
Ctrl + Alt + F
Refactoring
Create a new field and use the selected expression as its value.
Ctrl + Alt + C
Refactoring
Create a new constant (static final field) and use the selected expression as its value.
Ctrl + Alt + P
Refactoring
Turn the selected expression into a new method parameter.
Ctrl + Alt + N
Refactoring
Inline the selected method or variable.