dojo
PyCharm Cheatsheet
ShortcutFoo uses a Spaced Repetition System that adapts to your training.
scf keyboard

Editing I

^SPACE
Complete code
^⇧?
Comment/uncomment code with block comments
^/
Comment/uncomment current line or selected block with line comments
^⇧↵
Complete Current Statement
^I
Implement base interface/class methods in the current class
^O
Override base class methods in the current class
^P
Show parameters of the method call at caret
^⌥T
Surround selected code fragment with if, while, try/catch or other construct
scf keyboard

Editing II

^⌥I
Indent current line or selected block according to the code style settings
^C
Copy to clipboard
^X
Cut to clipboard
^V
Paste from clipboard
^⇧V
Paste from recent clipboards
^⌥⇧V
Paste without formatting, autoimport, literal escaping etc.
^⌥L
Reformat code
⌥↵
Show Intention Actions
⇧TAB
Unindent Selection
scf keyboard

Editing III

^Y
Delete Line
^DEL
Delete to Word End
^BACKSPACE
Delete to Word Start
^D
Duplicate Line or Block
^=
Expand folding region at caret
^⇧+
Expand all folding regions
^⇧J
Join Lines
^↵
Split Line
⇧↵
Start New Line
^⌥↵
Start New Line Before Current
^⇧U
Toggle Case
scf keyboard

Running / Debugging

⇧F10
Run
⇧F9
Debug
⌥5
Activate Debug window
⌥⇧F9
Choose and debug configuration
⌥F8
Evaluate arbitrary expression
F9
Resume program execution
^⇧F10
Run context configuration
⌥F9
Run to the line where the caret is
⌥⇧F10
Choose and run configuration
⇧F7
Step into the particular method
F7
Step to the next line executed
⇧F8
Step to the first line executed after returning from this method
F8
Step to the next line in this file
^⇧F8
View and manage all breakpoints and watchpoints
scf keyboard

Navigation I

^B
Navigate to the declaration of the symbol at caret
^0
Go to Bookmark 0
^1
Go to Bookmark 1
^2
Go to Bookmark 2
^3
Go to Bookmark 3
^4
Go to Bookmark 4
^⌥F4
Open image in external editor
⌥HOME
Jump to Navigation Bar
F4
Open editor for the selected item and give focus to it
^E
Show list of recently viewed files
^⇧E
Show list of recently changed files
^⌥HOME
Navigate to one of the related or linked files
⌥RIGHT
Activate next tab
⌥⇧RIGHT
Select Next Tab in multi-editor file
⌥LEFT
Activate previous tab
⌥⇧LEFT
Select Previous Tab in multi-editor file
scf keyboard

Navigation II

^⌥H
Browse call hierarchy for the selected method
^5
Go to Bookmark 5
^6
Go to Bookmark 6
^7
Go to Bookmark 7
^8
Go to Bookmark 8
^9
Go to Bookmark 9
^⌥B
Navigate to the implementation of class or method
^⇧BACKSPACE
Move through the most recent change points
^⇧H
Browse method hierarchy for the selected method
F2
Navigate to the next highlighted error in the active editor
⇧F2
Navigate to the previous highlighted error in the active editor
^U
Navigate to the declaration of the method that current method overrides or implements
^⇧)
Toggle Bookmark 0
^⇧!
Toggle Bookmark 1
^⇧@
Toggle Bookmark 2
^⇧#
Toggle Bookmark 3
^F11
Toggle Bookmark With Mnemonic
^H
Browse hierarchy for the selected class
scf keyboard

Navigation III

^]
Move Caret to Code Block End
^⇧}
Move Caret to Code Block End with Selection
^[
Move Caret to Code Block Start
^⇧{
Move Caret to Code Block Start with Selection
⇧END
Move Caret to Line End with Selection
⇧HOME
Move Caret to Line Start with Selection
^⇧RIGHT
Move Caret to Next Word with Selection
^HOME
Move Caret to Text Start
⌥⇧DOWN
Move selected lines one line down
⌥⇧UP
Move selected lines one line up
F7
Move to the Next Difference
⇧F7
Move to the previous difference
scf keyboard

Refactoring

⇧F5
Create a copy of the selected class, file or directory in the same package/directory
^⌥C
Replace selected expression with a constant
^⌥⇧C
Copy reference to selected class, method or function
F5
Create a copy of the selected class
^⌥N
Inline the selected method or variable
^⌥M
Turn the selected code fragment into a method
F6
Move the selected class, method, package or static member to another package or class and correct all references
^⌥P
Turn the selected expression into method parameter
⇧F6
Rename the selected symbol and correct all references
⌥DEL
Delete the selected class, method or field, checking for usages
^⌥J
Surrounds the selection with one of the template
^⌥V
Put a result of the selected expression into a variable
achievement-star