← Back to Home
🧠
Development Tools

PyCharm

PyCharm IDE shortcuts and features

⌨️ General

Shortcut Description
Ctrl + Shift + A
Find Action (Command Palette)
Shift + Shift
Search Everywhere
Ctrl + Alt + S
Open Settings
Ctrl + Shift + F12
Maximize editor
Alt + 1
Toggle Project view
Alt + 4
Toggle Run view
Alt + 5
Toggle Debug view
Alt + 9
Toggle Git view
Alt + F12
Open terminal
Ctrl + `
Switch theme/keymap

⌨️ Navigation

Shortcut Description
Ctrl + N
Go to class
Ctrl + Shift + N
Go to file
Ctrl + Alt + Shift + N
Go to symbol
Ctrl + G
Go to line
Ctrl + B
Go to declaration
Ctrl + Alt + B
Go to implementation
Ctrl + U
Go to super method/class
Alt + Left/Right
Navigate back/forward
Ctrl + E
Recent files
Ctrl + Shift + E
Recent locations
Ctrl + F12
File structure popup
Alt + Up/Down
Previous/next method
Ctrl + H
Type hierarchy
Ctrl + [ / ]
Jump to code block start/end

⌨️ Editing

Shortcut Description
Ctrl + Space
Basic code completion
Ctrl + Shift + Space
Smart code completion
Ctrl + Shift + Enter
Complete statement
Ctrl + P
Parameter info
Ctrl + Q
Quick documentation
Alt + Enter
Show intention actions
Ctrl + D
Duplicate line/selection
Ctrl + Y
Delete line
Ctrl + Shift + J
Join lines
Ctrl + /
Line comment
Ctrl + Shift + /
Block comment
Ctrl + W
Extend selection
Ctrl + Shift + W
Shrink selection
Alt + Shift + Up/Down
Move line up/down
Ctrl + Shift + Up/Down
Move statement up/down

⌨️ Refactoring

Shortcut Description
Shift + F6
Rename
Ctrl + F6
Change signature
Ctrl + Alt + M
Extract method
Ctrl + Alt + V
Extract variable
Ctrl + Alt + F
Extract field
Ctrl + Alt + C
Extract constant
Ctrl + Alt + P
Extract parameter
Ctrl + Alt + N
Inline
Ctrl + Shift + Alt + T
Refactor this
Ctrl + Alt + L
Reformat code
Ctrl + Alt + O
Optimize imports

⌨️ Search

Shortcut Description
Ctrl + F
Find
F3 / Shift + F3
Find next/previous
Ctrl + R
Replace
Ctrl + Shift + F
Find in path
Ctrl + Shift + R
Replace in path
Alt + F7
Find usages
Ctrl + Alt + F7
Show usages
Ctrl + F7
Highlight usages in file

⌨️ Run & Debug

Shortcut Description
Shift + F10
Run
Shift + F9
Debug
Ctrl + Shift + F10
Run context configuration
F7
Step into
F8
Step over
Shift + F8
Step out
Alt + F9
Run to cursor
Alt + F8
Evaluate expression
F9
Resume program
Ctrl + F8
Toggle breakpoint
Ctrl + Shift + F8
View breakpoints

⌨️ Version Control

Shortcut Description
Ctrl + K
Commit changes
Ctrl + Shift + K
Push commits
Ctrl + T
Update project (pull)
Alt + Shift + C
View recent changes
Ctrl + D
Show diff

💡 Tips & Tricks

  • Use Shift + Shift to search everything
  • Use Alt + Enter on any highlighted code for quick fixes
  • Use Live Templates for code snippets (e.g., main + Tab)
  • Use Postfix Completion (e.g., expr.if, expr.for)
  • Use Ctrl + Shift + A when you forget a shortcut
  • Configure Python interpreter in Settings > Project > Python Interpreter
  • Use Scientific Mode for data visualization
  • Use the Database tool for SQL queries and exploration