Useful Pycharm Keyboard Shortcuts
Pycharm is a popular Integrated Development Environment (IDE) for Python. It was developed by JetBrains. It provides a wide range of features to enhance productivity. It provides code analysis, integrated unit testing, a debugger, integration with version control, and also supports web development in Django and Flask.
Pycharm Brief Overview
- Intelligent Code assistance – Pycharm offers intelligence like code completion, inspections, and quick fixes. It offers context-based completions.
- Robust Debugger – Pycharm debugger offers features like breakpoints, watches, and variable exploration.
- Testing – Pycharm provides many wide range of testing frameworks.
- Advanced refactoring – Renaming variable names, methods, and classes is simple in Pycharms refactoring tools.
- Integration with Web Technologies – Pycharm supports web development in Django and Flask. It also supports database management.
Pycharm has many tools, in which keyboard shortcuts are one of the powerful ways to navigate, code, and debug swiftly.
Keyboard Shortcuts in PyCharm
Let’s see some important keyboard shortcuts in Pycharm IDE.
CREATE AND EDIT
Keyboard Shortcut |
Task/Command |
---|---|
Alt + Enter |
Show intention actions |
Ctrl + Space |
Basic code completion |
Ctrl + Shift + Space |
Smart code completion |
Ctrl + Alt + Space |
Typename completion |
Ctrl + Shift + Enter |
Complete Statement |
Ctrl + P / Alt + Q |
Parameter information / context info |
Ctrl + Shift + I |
Quick Definition |
Ctrl + Q / Shift + F1 |
Quick / external documentation |
Alt + Insert |
Generate code |
Ctrl + O / Ctrl + I |
Override / implement members |
Ctrl + X / Ctrl + C / Ctrl + V |
Cut / Сopy / Paste |
Ctrl + Shift + C |
Copy document path |
Ctrl + D |
Duplicate current line or selection |
Ctrl + Shift + Up / Down |
Move line up/down |
Ctrl + Y |
Delete line at caret |
Ctrl + Shift + J / Ctrl + Enter |
join or split line |
Shift + Enter |
Start new line |
Ctrl + S |
Save all |
VERSION CONTROL
Keyboard Shortcut |
Task/command |
---|---|
Alt + ` |
VCS operations popup… |
Ctrl + K |
commit |
Ctrl + T |
Update project |
Alt + Shift + C |
recent changes |
Ctrl + Alt + Z |
Revert |
Ctrl + Shift + K |
Push |
Ctrl + Alt + Shift + Down / Up |
Next / previous change |
FIND/REPLACE
Keyboard Shortcut |
Task/Command |
---|---|
Double Shift |
Search everywhere |
Ctrl + Shift + F / R |
Find in path / Replace in path |
Ctrl + F / R |
Find / replace |
F3 / Shift + F3 |
Next / previous occurence |
Ctrl + F3 |
Find word at caret |
Ctrl + N / Ctrl + Shift + N |
Go to class/file |
Ctrl + F12 |
Go to file member |
Ctrl + Alt + Shift + N |
Go to symbol |
REFACTOR AND CLEAN UP
Keyboard Shortcut |
Task/Command |
---|---|
Ctrl + Alt + Shift + T |
Refactor this |
F5 / F6 |
Copy/ Move |
Shift + F6 |
Rename |
Shift + Delete |
Safe Delete |
Ctrl + Alt + L |
Reformat Code |
BUILD, RUN, AND DEBUG
Keyboard Shortcut |
Task/Command |
---|---|
Ctrl + Shift + F10 |
Run context configuration |
F8 / F7 |
Step over / into |
Shift + F7 |
Smart step into |
Shift + F8 |
Step out |
Alt + F9 / Ctrl + Alt + F9 |
Run to cursor / Force run to cursor |
Alt + F10 |
Show execution point |
F9 |
Resume Program |
There are many more shortcuts other than these. These are some main shortcuts you will use often while using Pycharm. You can learn more shortcuts from official document of JetBrains – Pycharm keyboard shortcuts.
Mastering keyboard shortcuts is a key aspect for coding efficiently and swiftly. Regular experiment with these shortcuts in projects helps to increase productivity and coding experience.
Contact Us