Skip to content

Latest commit

 

History

History
142 lines (127 loc) · 4.35 KB

pycharm-keys-chtsht.md

File metadata and controls

142 lines (127 loc) · 4.35 KB

PyCharm Keybindings Cheatsheet

Keybindings

Common

Action Keybind
Search Everywhere ⇧ + ⇧
Find Action ⇧ + ⌘ + A
Show Context Action ⌥ + ↵
Navigate between code issues F2
Jump to the next or previous highlighted error ⇧ + F2
View recent files ⌘ + E
Extend/Shrink selection ⌥ + ↑ or ⌥ + ↓
Add/remove line or block comment ⌘ + /
Comment out a line or block of code ⌥ + ⌘ + /
Find Usages ⌥ + F7

Create and Edit

Show intention actions ⌥ ↵ Basic / smart code completion ⌃ ⎵ / ⌃ ⇧ ⎵ Type name completion ⌃ ⌥ ⎵ Complete statement ⇧ ⌘ ↵ Parameter information ⌘ P Quick definition ⌥ ⎵ Quick / external documentation F1 / ⇧F1 Generate code ⌘ N Override / implement members ⌃ O / ⌃ I Surround with... ⌥ ⌘T Comment with line comment ⌘ / Extend / shrink selection ⌥ ↑ / ⌥ ↓ Context info ⌃ ⇧ Q Optimize imports ⌃ ⌥ O Auto-indent lines ⌃ ⌥ I Cut / Copy / Paste ⌘ X / ⌘ C / ⌘ V Copy document path ⇧ ⌘ C Paste from clipboard history ⇧ ⌘ V Duplicate current line or selection ⌘ D Move line up / down ⇧ ⌘ ↑ / ⇧ ⌘ ↓ Delete line at caret ⌘ ⌨ Join / split line ⌃ ⇧ J / ⌘ ↵ Start new line ⇧ ↵ Toggle case ⇧ ⌘ U Expand / collapse code block ⌘ + / ⌘ - Expand / collapse all ⇧⌘ + / ⇧⌘ - Save all ⌘ S

VERSION CONTROL VCS operations popup... ⌃ V Commit ⌘ K Update project ⌘ T Recent changes ⌥ ⇧C Revert ⌥ ⌘ Z Push... ⇧⌘ K Next / previous change ⌃ ⌥ ⇧ ↓ / ↑

MASTER YOUR IDE Find action... ⇧ ⌘ A Open a tool window ⌘ Y [0-9] Synchronize ⌥ ⌘ Y Toggle full screen mode ⌃ ⌘ F Quick switch scheme... ⌃ ` Preferences... ⌘ , Jump to source / navigation bar ⌘ ↓ / ⌘ ↑ Jump to last tool window F12 Hide active / all tool windows ⇧ ⎋ / ⇧⌘ F12 Go to next / previous editor tab ⌃ Tab Go to editor (from a tool window) ⎋

FIND EVERYTHING Search everywhere Double ⇧ Find / Replace ⌘ F / ⌘ R Find in path / Replace in path ⇧⌘ F / ⇧⌘R Next / previous occurence ⌘ G / ⇧⌘ G Go to class ⌘ O Go to file member ⌘ F12 Go to file / symbol ⇧ ⌘O / ⌥ ⌘O

NAVIGATE FROM SYMBOLS Declaration ⌘ B Type declaration (JavaScript only) ⌃ ⇧ B Super method ⌘ U Implementation(s) ⌥ ⌘ B Find usages / Find usages in file ⌥ F7 / ⌘ F7 Highlight usages in file ⇧⌘ F7 Show usages ⌥⌘ F7

REFACTOR AND CLEAN UP Refactor this... ⌃ T Copy... / Move... F5 / F6 Safe delete... ⌘ ⌨ Rename... ⇧ F6 Change signature... ⌘ F6 Inline... ⌥ ⌘ N Extract method ⌥ ⌘ M Introduce variable / field ⌥ ⌘ V / ⌥ ⌘ F Introduce constant / parameter ⌥ ⌘ C / ⌥ ⌘ P Reformat code ⌥ ⌘ L

ANALYZE AND EXPLORE Show error description ⌘ F1 Next / previous highlighted error F 2 / ⇧ F2 Run inspection by name... ⌥ ⇧⌘ I Type / call hierarchy ⌃ H / ⌃ ⌥ H

NAVIGATE IN CONTEXT Select in... ⌥ F1 Recently viewed / ⌘ E / ⇧ ⌘ E Last edit location ⇧⌘ ⌨ Navigate back / forward ⌘ [ / ⌘ ] Go to previous / next method ⌃ ↑ / ⌃ ↓ Go to line /column... ⌘ L Go to code block end / start ⌥ ⌘ ] / ⌥ ⌘ [ Add to favorites ⌥ ⇧ F Toggle bookmark F3 Toggle bookmark with mnemonic ⌥ F3 Go to numbered bookmark ⌃ [0-9] Show bookmarks ⌘ F3

BUILD, RUN, AND DEBUG Run context configuration ⌃ ⌥ R Run / debug selected configuration ⌃ ⌥ R / ⌃ ⌥ D Run / debug current configuration ⌃ R / ⌃ D Step over / into F8 / F7 Smart step into ⇧ F7 Step out ⇧ F8 Run to cursor ⌥ F9 Force run to cursor ⌥ ⌘ F9 Show execution point ⌥ F10 Evaluate expression... ⌥ F8 Stop ⌘ F2 Stop background processes... ⇧ ⌘ F2 Resume program ⌥ ⌘ R Toggle line breakpoint ⌘ F8 Toggle temporary line breakpoint ⌥ ⇧⌘ F8 Edit / view breakpoint ⇧⌘ F8

References