Common PyCharm Shortcut Keys for Efficient Python Development
An extensive guide lists essential PyCharm shortcut keys—including editing, navigation, search, refactoring, and running commands—providing English translations of each key combination and its function to help Python developers work more efficiently in their daily coding tasks.
This article introduces commonly used PyCharm shortcut keys to help Python learners improve productivity.
1. Code Editing Shortcuts
No.
Shortcut
Action
1
CTRL+ALT+SPACE
Quickly import any class
2
CTRL+SHIFT+ENTER
Code completion
3
SHIFT+F1
View external documentation
4
CTRL+Q
Quick documentation lookup
5
CTRL+P
Show parameter info (method arguments)
6
CTRL+MOUSE OVER CODE
Show basic information
7
CTRL+F1
Display error or warning description
8
CTRL+INSERT
Generate code
9
CTRL+O
Override method
10
CTRL+ALT+T
Wrap code with a block
11
CTRL+/
Toggle single‑line comment
12
CTRL+SHIFT+/
Toggle block comment
13
CTRL+W
Select code block progressively
14
CTRL+SHIFT+W
Deselect code block progressively
15
CTRL+SHIFT+[
Select from cursor to start of block
16
CTRL+SHIFT+]
Select from cursor to end of block
17
ALT+ENTER
Quick fix for code
18
CTRL+ALT+L
Reformat code
19
CTRL+ALT+O
Optimize imports
20
CTRL+ALT+I
Auto‑indent
21
TAB
Indent code forward
23
SHIFT+TAB
Unindent code
24
CTRL+SHIFT+V
Show clipboard history
25
CTRL+D
Duplicate current line or block
26
CTRL+Y
Delete current line or block
27
CTRL+SHIFT+J
Join lines into one
28
SHIFT+ENTER
Start a new line
28
CTRL+SHIFT+U
Toggle uppercase
29
CTRL+DELETE
Delete forward word by word
30
CTRL+BACKSPACE
Delete backward word by word
31
CTRL+NUMPAD+/‑
Expand/collapse code block
32
CTRL+SHIFT+NUMPAD+
Expand all code blocks
33
CTRL+SHIFT+NUMPAD‑
Collapse all code blocks
34
CTRL+F4
Close active editor window
2. Search/Replace Shortcuts
No.
Shortcut
Action
1
CTRL+F
Find
2
F3
Find next
3
SHIFT+F3
Find previous
4
CTRL+R
Replace
5
CTRL+SHIFT+F
Find in path
6
CTRL+SHIFT+R
Replace in path
3. Code Run Shortcuts
No.
Shortcut
Action
1
ALT+SHIFT+F10
Select program file and run
2
ALT+SHIFT+F9
Select program file and debug
3
SHIFT+F10
Run code
4
SHIFT+F9
Debug code
5
CTRL+SHIFT+F10
Run current file in editor
4. Code Debug Shortcuts
No.
Shortcut
Action
1
F8
Step over
2
F7
Step into (same as F8 when no function)
3
SHIFT+F8
Step out
4
ALT+F9
Run to cursor
5
ALT+F8
Evaluate expression
6
F9
Rerun program
7
CTRL+F8
Toggle breakpoint
8
CTRL+F8
View breakpoint
5. Application Search Shortcuts
No.
Shortcut
Action
1
ALT+F7
Find usages
2
CTRL+F7
Find usages in file
3
CTRL+SHIFT+F7
Highlight usages in file
4
CTRL+ALT+F7
Show usages
6. Code Refactoring Shortcuts
No.
Shortcut
Action
1
F5
Copy file
2
F6
Move file
3
SHIFT+F6
Rename
4
ALT+DELETE
Safe delete
5
CTRL+F6
Change method signature
6
CTRL+ALT+M
Extract method
7
CTRL+ALT+V
Extract variable
8
CTRL+ALT+C
Extract constant
9
CTRL+ALT+F
Extract field
10
CTRL+ALT+P
Extract parameter
7. Dynamic Module Shortcuts
No.
Shortcut
Action
1
CTRL+ALT+J
Wrap with live template
2
CTRL+J
Insert live template
8. Navigation Shortcuts
No.
Shortcut
Action
1
CTRL+N
Go to class
2
CTRL+SHIFT+N
Go to file
3
CTRL+ALT+SHIFT+N
Go to symbol
4
CTRL+←←
Navigate to previous edit location
5
CTRL+→→
Navigate to next edit location
7
SHIFT+ESC
Hide active or last active window
8
CTRL+SHIFT+F4
Close active run/message/find window
9
CTRL+G
Show line and column of cursor
10
CTRL+E
Popup recent files
11
CTRL+ALT+←/→
Navigate backward/forward
13
CTRL+B
Go to declaration
14
CTRL+CLICK
Go to declaration
15
CTRL+ALT+B
Go to implementation
16
CTRL+SHIFT+I
Open quick definition lookup
16
CTRL+SHIFT+B
Go to type declaration
17
CTRL+U
Go to super method/class
18
CTRL+↑↑
Go to previous method
19
CTRL+↓↓
Go to next method
20
CTRL+[
Jump to start of code block
21
CTRL+]
Jump to end of code block
22
CTRL+F12
Show file structure
23
CTRL+H
Show class hierarchy
24
CTRL+SHIFT+H
Show method hierarchy
25
CTRL+ALT+H
Show call hierarchy
26
F2 / SHIFT+F2
Next / previous error
27
F4
View source code
28
ALT+HOME
Show navigation bar
30
F11
Add bookmark
31
CTRL+F11
Add numeric/alphabetic bookmark
32
CTRL+SHIFT+[1-9]
Add numeric bookmark
33
SHIFT+F11
Show bookmarks
9. General Shortcuts
No.
Shortcut
Action
1
ALT+[0-9]
Open corresponding tool window
2
CTRL+ALT+Y
Synchronize
3
CTRL+SHIFT+F12
Maximize editor
4
ALT+SHIFT+F
Add to favorites
5
ALT+SHIFT+I
Inspect current file with current profile
6
CTRL+ALT+S
Quickly open Settings dialog
7
CTRL+SHIFT+A
Find and execute actions
8
ALT+TAB
Switch between tabs and tool windows
Python Programming Learning Circle
A global community of Chinese Python developers offering technical articles, columns, original video tutorials, and problem sets. Topics include web full‑stack development, web scraping, data analysis, natural language processing, image processing, machine learning, automated testing, DevOps automation, and big data.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.