Skip to content
PyCharm icon

PyCharm shortcuts for Mac

192 shortcuts · 12 categories

PyCharm is an integrated development environment (IDE) for Python that offers features such as code completion, refactoring, and debugging support. Download PyCharm

Use these PyCharm shortcuts from a pie menu

Access your favorite PyCharm shortcuts instantly with Pie Menu. No more memorizing—just point and click.

Pie Menu with shortcuts
Hover a shortcut to add it to Pie Menu

Mac keyboard shortcuts for PyCharm

Refactoring

  • Inline⌥ (option) + ⌘ (command) + n Add →
  • Introduce Parameter⌥ (option) + ⌘ (command) + p Add →
  • Introduce Constant⌥ (option) + ⌘ (command) + c Add →
  • Introduce Field⌥ (option) + ⌘ (command) + f Add →
  • Introduce Variable⌥ (option) + ⌘ (command) + v Add →
  • Extract Method⌥ (option) + ⌘ (command) + m Add →
  • Safe Delete⌘ (command) + ⌫ Add →
  • Copyf5 Add →
  • Movef6 Add →
  • Change Method Signature⌘ (command) + f6 Add →
  • Rename⇧ (shift) + f6 Add →

Navigation In Source Code

  • Navigate to Previous Highlighted Error⇧ (shift) + f2 Add →
  • Navigate to Next Highlighted Errorf2 Add →
  • Last Edit Location⇧ (shift) + ⌘ (command) + ⌫ Add →
  • Navigate to Next Occurrence⌥ (option) + ⌘ (command) + ↓ Add →
  • Navigate to Previous Occurrence⌥ (option) + ⌘ (command) + ↑ Add →
  • Forward⌘ (command) + ] Add →
  • Back⌘ (command) + [ Add →
  • Navigate to Closing Brace⌥ (option) + ⌘ (command) + ] Add →
  • Navigate to Opening Brace⌥ (option) + ⌘ (command) + [ Add →
  • Navigate to Previous Method⌃ (control) + ↑ Add →
  • Navigate to Next Method⌃ (control) + ↓ Add →
  • Go to Header/Sourcef10 Add →
  • Navigate to Related Symbol⌃ (control) + ⌘ (command) + ↑ Add →
  • Navigate to Test/Test Subject⇧ (shift) + ⌘ (command) + t Add →
  • Navigate to Super Method⌘ (command) + u Add →
  • Navigate to Type Declaration⇧ (shift) + ⌘ (command) + b Add →
  • Navigate to Implementation⌥ (option) + ⌘ (command) + b Add →
  • Navigate to Declaration⌘ (command) + b Add →
  • Navigate to Line⌘ (command) + l Add →
  • Navigate to Recently Opened File⌘ (command) + e Add →
  • Navigate to File⇧ (shift) + ⌘ (command) + o Add →
  • Navigate to Class⌘ (command) + o Add →
  • Type Hierarchy⌃ (control) + h Add →
  • Recent Files⌘ (command) + e Add →
  • Select target⌥ (option) + f1 Add →
  • File Structure Popup⌘ (command) + f12 Add →

Differences

  • Move to Previous Difference⇧ (shift) + f7 Add →
  • Move to Next Differencef7 Add →

Show Tool Windows

  • Show Terminal window⌥ (option) + f12 Add →
  • Show Commit window⌘ (command) + 0 Add →
  • Show Version Control window⌘ (command) + 9 Add →
  • Show Services window⌘ (command) + 8 Add →
  • Show Structure window⌘ (command) + 7 Add →
  • Show Problems window⌘ (command) + 6 Add →
  • Show Debug window⌘ (command) + 5 Add →
  • Show Run window⌘ (command) + 4 Add →
  • Show Find window⌘ (command) + 3 Add →
  • Show Favorites window⌘ (command) + 2 Add →
  • Show Project window⌘ (command) + 1 Add →

Views and Windows

  • Hide all tool windows⇧ (shift) + ⌘ (command) + f12 Add →
  • Jump to Last Windowf12 Add →
  • Hide Active Window⇧ (shift) + esc Add →
  • Switcher⌃ (control) + ⇥ Add →
  • Expand all⌘ (command) + num-plus Add →
  • Collapse all⌘ (command) + num- Add →
  • Select Target⌥ (option) + f1 Add →

Navigation Between Bookmarks

  • Show Bookmarks⌘ (command) + f3 Add →
  • Toggle Bookmark with Mnemonic⌥ (option) + f3 Add →
  • Toggle Bookmarkf3 Add →
  • Go to Bookmark <number>⌃ (control) + number Add →

General

  • View Source⌘ (command) + ↵ Add →
  • Reload All from Disk⌥ (option) + ⌘ (command) + y Add →
  • Show Intention Action⌥ (option) + ↵ Add →
  • Select Previous Tab⇧ (shift) + ⌘ (command) + [ Add →
  • Select Next Tab⇧ (shift) + ⌘ (command) + ] Add →
  • Save All⌘ (command) + s Add →
  • New...⌘ (command) + n Add →
  • Export to Text File⌃ (control) + o Add →
  • Escapeesc Add →
  • Edit Source⌘ (command) + ↓ Add →
  • Close Editor⌘ (command) + w Add →
  • Close Active Tab⌃ (control) + ⇧ (shift) + f4 Add →

Running and Debugging

  • View Breakpoints⇧ (shift) + ⌘ (command) + f8 Add →
  • Toggle breakpoint at the current line.⌘ (command) + f8 Add →
  • Quick Evaluate Expression⌥ (option) + ⌘ (command) + f8 Add →
  • Evaluate Expression⌥ (option) + f8 Add →
  • Stop Program⇧ (shift) + f2 Add →
  • Pause Program⌃ (control) + pause Add →
  • Resume Program⌥ (option) + ⌘ (command) + r Add →
  • Force Run To Cursor⌥ (option) + ⌘ (command) + f9 Add →
  • Run to Cursor⌥ (option) + f9 Add →
  • Force Step Into⌥ (option) + ⇧ (shift) + f7 Add →
  • Step Into My Code⌥ (option) + ⇧ (shift) + f8 Add →
  • Force Step Over⌥ (option) + ⇧ (shift) + f8 Add →
  • Step Out⇧ (shift) + f8 Add →
  • Smart Step Into⇧ (shift) + f7 Add →
  • Step Intof7 Add →
  • Step Overf8 Add →
  • Show Execution Point⌥ (option) + f10 Add →
  • Choose configuration and debug⌃ (control) + ⌥ (option) + d Add →
  • Debug⌃ (control) + d Add →
  • Rerun without loosing focus in the editor⌃ (control) + r Add →
  • Rerun⌘ (command) + r Add →
  • Choose configuration and run⌃ (control) + ⌥ (option) + r Add →
  • Run⌃ (control) + r Add →

Code Folding

  • Fold Selection / Remove region⌘ (command) + . Add →
  • Expand all to level 1⌥ (option) + ⌘ (command) + num*  1 Add →
  • Expand to level 1⌘ (command) + num*  1 Add →
  • Collapse All⇧ (shift) + ⌘ (command) + num- Add →
  • Expand All⇧ (shift) + ⌘ (command) + num-plus Add →
  • Collapse Recursively⌥ (option) + ⌘ (command) + num- Add →
  • Expand Recursively⌥ (option) + ⌘ (command) + num-plus Add →
  • Collapse⌘ (command) + num- Add →
  • Expand⌘ (command) + num-plus Add →

Basic Editing

  • Auto-Indent Lines⌃ (control) + ⌥ (option) + i Add →
  • Unindent Selection⇧ (shift) + ⇥ Add →
  • Indent Selection⇥ Add →
  • Unselect Word at Caret⌥ (option) + ↓ Add →
  • Select Word at Caret⌥ (option) + ↑ Add →
  • Split Line⌘ (command) + ↵ Add →
  • Join Lines⌃ (control) + ⇧ (shift) + j Add →
  • Start New Line Before Current One⌥ (option) + ⌘ (command) + ↵ Add →
  • Start New Line⇧ (shift) + ↵ Add →
  • Move to Code Block Start with Selection⌥ (option) + ⇧ (shift) + ⌘ (command) + [ Add →
  • Move to Code Block Start⌥ (option) + ⌘ (command) + [ Add →
  • Move to Code Block End with Selection⌥ (option) + ⇧ (shift) + ⌘ (command) + ] Add →
  • Move to Code Block End⌥ (option) + ⌘ (command) + ] Add →
  • Toggle Case⇧ (shift) + ⌘ (command) + u Add →
  • Duplicate Line or Block⌘ (command) + d Add →
  • Toggle Insert/Overwrite⇧ (shift) + ⌫ Add →
  • Delete to Word Start⌥ (option) + ⌫ Add →
  • Delete to Word End⌥ (option) + ⌫ Add →
  • Delete Line at Caret⌘ (command) + ⌫ Add →
  • Select All⌘ (command) + a Add →
  • Move to Text Start with Selection.⇧ (shift) + ⌘ (command) + home Add →
  • Move to Text Start⌘ (command) + home Add →
  • Move to Text End with Selection⇧ (shift) + ⌘ (command) + end Add →
  • Move to Text End⌘ (command) + end Add →
  • Move to Previous Word with Selection⌥ (option) + ⇧ (shift) + ← Add →
  • Move to Previous Word⌥ (option) + ← Add →
  • Move to Next Word with Selection⌥ (option) + ⇧ (shift) + → Add →
  • Move to Next Word⌥ (option) + → Add →
  • Move to Line Start with Selection⇧ (shift) + home Add →
  • Move to Line Starthome Add →
  • Move to Line End with Selection⇧ (shift) + end Add →
  • Move to Line Endend Add →
  • Page Up with Selection⇧ (shift) + pageup Add →
  • Page Uppageup Add →
  • Page Down with Selection⇧ (shift) + pagedown Add →
  • Page Downpagedown Add →
  • Go to Page Top with Selection⇧ (shift) + ⌘ (command) + pageup Add →
  • Go to Page Top⌘ (command) + pageup Add →
  • Go to Page Bottom with Selection⇧ (shift) + ⌘ (command) + pagedown Add →
  • Go to Page Bottom⌘ (command) + pagedown Add →
  • Right with Selection⇧ (shift) + → Add →
  • Right→ Add →
  • Left with Selection⇧ (shift) + ← Add →
  • Left← Add →
  • Down with Selection⇧ (shift) + ↓ Add →
  • Down↓ Add →
  • Up with Selection⇧ (shift) + ↑ Add →
  • Up↑ Add →
  • Paste from History⇧ (shift) + ⌘ (command) + v Add →
  • Paste⌘ (command) + v Add →
  • Copy⌘ (command) + c Add →
  • Cut⌘ (command) + x Add →
  • Redo⇧ (shift) + ⌘ (command) + z Add →
  • Undo⌘ (command) + z Add →
  • Backspace⌫ Add →
  • Delete⌫ Add →
  • Tab⇥ Add →
  • Enter↵ Add →

Advanced Editing

  • Previous Template Variable⇧ (shift) + ⇥ Add →
  • Next Template Variable⇥ Add →
  • Surround with Live Template...⌥ (option) + ⌘ (command) + j Add →
  • Insert Live Template...⌘ (command) + j Add →
  • Expand Word⌥ (option) + / Add →
  • SmartType Code Completion⌃ (control) + ⇧ (shift) + space Add →
  • Basic Code Completion⌃ (control) + space Add →
  • Surround with...⌥ (option) + ⌘ (command) + t Add →
  • Override Methods...⌃ (control) + o Add →
  • External Documentation⇧ (shift) + f1 Add →
  • Error Description⌘ (command) + f1 Add →
  • Context Info⌃ (control) + ⇧ (shift) + q Add →
  • Parameter Info⌘ (command) + p Add →
  • Pop-up Hector⌥ (option) + ⇧ (shift) + ⌘ (command) + h Add →
  • Quick Documentationf1 Add →
  • Comment with Block Comment⌥ (option) + ⌘ (command) + / Add →
  • Comment with Line Comment⌘ (command) + / Add →

Download Keyboard Cheat Sheet for PyCharm for Mac

Do you want all keyboard shortcuts for PyCharm in one pdf?

Cheat sheet

Community shortcuts for PyCharm

Be the first to share — open Pie Menu → PyCharm → Share Config

View community page →
Pie Menu

Get started with Pie Menu today.

The convenience of shortcuts without the memorization!