Tips | PyCharm's Shortcuts You Can Not Miss

How it feels like when you want sth from the keyboard, but you have to reach out your little fingers to the mouse…

Keyboard is always a good friend…While, for some people who lives in the terminal, Another dimension far away beyond my Apprehension

1). Basics

ActionShortcut
Find action by nameCtrl+Shift+A
Show the list of available intention actions
.
Alt+Enter
Switch between views (Project,Structure,
etc.).
Alt+F1
Switch between the tool windows and files opened in the editor.
Ctrl+Tab
Show the Navigation bar.Alt+Home
Insert a live template.Ctrl+J
Surround with a live template.Ctrl+Alt+J
Edit an item from the Project or another tree view.F4
Comment or uncomment a line or fragment of code
with the line or block comment.
Ctrl+Slash

Ctrl+Shift+Slash
Find class or file by name.Ctrl+N

Ctrl+Shift+N
Duplicate the current line or selection.Ctrl+D
Incremental expression selection.Ctrl+W and Ctrl+Shift+W
Find/replace text string in the current file.Ctrl+F
Ctrl+R
Find/replace text in the project or in the specified directoryCtrl+Shift+F
Ctrl+Shift+R
Search everywhere.Double-press
Shift
Quick view the usages of the selected symbol.Ctrl+Shift+F7
Expand or collapse a code fragment in the editor.Ctrl+NumPad Plus

Ctrl+NumPad -
Invoke code completion.Ctrl+Space
Show the list of available refactorings (Refactor This).Ctrl+Shift+Alt+T

2). More, I want more!

FunctionShortcutUse this shortcut to…
Comment with Line Comment
Ctrl+Slash
Comment/uncomment current line or selected block with line comments.
Comment with Block Comment
Ctrl+Shift+Slash

Comment/uncomment code with block comments.
Quick Documentation
Ctrl+Q/Alt+Button2 Click
Show a pop-up window with the documentation for the symbol at the caret.
Pop-up Hector
Ctrl+Shift+Alt+H
Show the Highlighting level pop-up window to configure highlighting in the current file.
Parameter Info
Ctrl+P
Show parameters of the method call at the caret.
Context Info
Alt+Q
Show the current method or class declaration when it is not visible.
Error Description
Ctrl+F1
Show an error or warning description at the caret.
External Documentation
Shift+F1
Open browser with the documentation for the selected item.
Override Methods…
Ctrl+O
Override base class methods in the current class.
Surround with…
Ctrl+Alt+T

Surround selected code fragment with if,
do, tags or other constructs.
Basic Code Completion
Ctrl+Space


Alt+Slash
Code completion for any class, method or variable.
SmartType Code Completion
Ctrl+Shift+Space
Code Completion filtering the lookup list basing on expected type.
Expand Word
Alt+Slash
Goes through the names of classes, methods, keywords and variables in the current visibility
scope.
Insert Live Template…
Ctrl+J
Show a pop-up list of starting with a specified prefix.
Surround with Live Template…
Ctrl+Alt+J
Surround the selection with one of the templates.
Next Template Variable
Tab
In templates: move the caret to the next template variable.
Previous Template Variable
Shift+Tab
In templates: move the caret to the previous template variable.