PyCharm HotKey Cheatsheet

PyCharm is a powerful integrated development environment (IDE) designed for Python programming. To improve productivity and efficiency, mastering PyCharm's shortcut keys is essential.

PyCharm Windows Shortcut Keys

NAVIGATE IN CONTEXT

ShortcutDescription
Alt + Shift + FAdd to favorites
Alt + up / Alt + downGo to previous/next method
Ctrl + F11Toggle bookmark with mnemonic
Ctrl + Shift + BackLast edit location
F11Toggle bookmark
Shift + F11Show bookmarks
Ctrl + Alt + left / Ctrl + Alt + rightNavigate back/forward
Ctrl + GGo to line/column…
Ctrl + ] / Ctrl + [Go to code block end/start
Ctrl + [0-9]Go to numbered bookmark
Ctrl + E / Ctrl + Shift + ERecently viewed/Recent locations
Alt + F1Select in…

REFACTOR AND CLEAN UP

ShortcutDescription
Shift + F6Rename…
Ctrl + F6Change signature…
Ctrl + Alt + Shift + TRefactor this…
Ctrl + Alt + F / Ctrl + Alt + CIntroduce field/constant
F5 + F6Copy…/Move…
Ctrl + Alt + NInline…
Ctrl + Alt + MExtract method
Ctrl + Alt + V / Ctrl + Alt + PIntroduce variable/parameter
Ctrl + Alt + LReformat code
Alt + DeleteSafe delete…

CREATE AND EDIT

ShortcutDescription
Ctrl + Shift + J / Ctrl + enterJoin/split line
Ctrl + Alt + TSurround with…
Ctrl + Shift + up / Ctrl + Shift + downMove line up/down
Alt + InsertGenerate code
Ctrl + X / Ctrl + C / Ctrl + VCut/Сopy/Paste
Ctrl + W / Ctrl + Shift + WExtend/shrink selection
Ctrl + SSave all
Ctrl + /Comment with line comment
Ctrl + Shift + CCopy document path
Ctrl + Shift + IQuick definition
Ctrl + Alt + OOptimize imports
Ctrl + spaceBasic code completion
Ctrl + Shift + spaceSmart code completion
Ctrl + Shift + UToggle case
Ctrl + Q + Shift + F1Quick/external documentation
Shift + enterStart new line
Ctrl + Shift + enterComplete statement
Ctrl + O + Ctrl + IOverride/implement members
Ctrl + NumPad+ / Ctrl + Shift + NumPad+Expand/collapse code block
Ctrl + DDuplicate current line or selection
Alt + enterShow intention actions
Ctrl + Shift + VPaste from clipboard history
Ctrl + P + Alt + QParameter information/context info
Ctrl + Alt + spaceType name completion
Ctrl + Alt + IAuto-indent lines
Ctrl + YDelete line at caret

NAVIGATE FROM SYMBOLS

ShortcutDescription
Ctrl + Alt + BImplementation(s)
Ctrl + F12Go to file member
Ctrl + Shift + BType declaration (JavaScript only)
Ctrl + Shift + F7Highlight usages in file
Alt + F7 / Ctrl + F7Find usages/Find usages in file
Ctrl + BDeclaration
Ctrl + USuper method
Ctrl + Alt + Shift + NGo to symbol
Ctrl + N + Ctrl + Shift + NGo to class/file
Ctrl + Alt + F7Show usages

BUILD, RUN, AND DEBUG

ShortcutDescription
Ctrl + Alt + Shift + F8Toggle temporary line breakpoint
Ctrl + Shift + F8Edit/view breakpoint
F9Resume program
Ctrl + Shift + F10Run context configuration
Shift + F7Smart step into
F8 + F7Step over/into
Shift + F8Step out
Ctrl + F8Toggle line breakpoint
Alt + F9 / Ctrl + Alt + F9Run to cursor/Force run to cursor
Alt + F10Show execution point
Ctrl + Shift + F2Stop background processes…
Alt + F8Evaluate expression…
Shift + F10 / F9Run/debug current configuration
Ctrl + F2Stop
Alt + Shift + F10 / F9Run/debug selected configuration

VERSION CONTROL

ShortcutDescription
Ctrl + KCommit
Ctrl + Alt + ZRevert
Ctrl + TUpdate project
Ctrl + Shift + KPush…
Alt + Shift + CRecent changes
Alt + BackquoteVCS operations popup…
Ctrl + Alt + Shift + down / Ctrl + Alt + Shift + upNext/previous change

MASTER YOUR IDE

ShortcutDescription
Alt + [0-9]Open a tool window
Ctrl + Alt + YSynchronize
Ctrl + Alt + SSettings…
Ctrl + BackquoteQuick switch scheme…
Ctrl + Shift + AFind action…

FIND EVERYTHING

ShortcutDescription
F3 + Shift + F3Next/previous occurence
Ctrl + F3Find word at caret
Ctrl + Shift + F / Ctrl + Shift + RFind in path/Replace in path
Ctrl + F / Ctrl + RFind/replace
Double + ShiftSearch everywhere

ANALYZE AND EXPLORE

ShortcutDescription
Ctrl + F1Show error description
Ctrl + Alt + Shift + IRun inspection by name…
Ctrl + H / Ctrl + Alt + HType/call hierarchy
F2 + Shift + F2Next/previous highlighted error

Download PyCharm Windows Shortcut Keys Cheatsheet PDF

We provide a PyCharm Windows Shortcut Keys PDF download feature. Click the download button to get the file. Please note that generating the PDF may take some time, so please be patient. Download

PyCharm macOS Shortcut Keys

MASTER YOUR IDE

ShortcutDescription
Go to editor (from a tool window)
+ Back / + + F12Hide active/all tool windows
+ + YSynchronize
+ ,Preferences…
+ + FToggle full screen mode
+ TabGo to next/previous editor tab
+ BackquoteQuick switch scheme…
F12Jump to last tool window
+ + + Jump to source/navigation bar
+ Y + 0-9Open a tool window
+ + AFind action…

VERSION CONTROL

ShortcutDescription
+ + + / + + + Next/previous change
+ + ZRevert
+ KCommit
+ + KPush…
+ + CRecent changes
+ TUpdate project
+ VVCS operations popup…

NAVIGATE IN CONTEXT

ShortcutDescription
+ + FAdd to favorites
+ F3Toggle bookmark with mnemonic
+ + Last edit location
+ F3Show bookmarks
+ + ] / + + [Go to code block end/start
+ [0-9]Go to numbered bookmark
F3Toggle bookmark
+ E + / + ERecently viewed/
+ LGo to line/column…
+ F1Select in…
+ [ / + ]Navigate back/forward
+ + + Go to previous/next method

REFACTOR AND CLEAN UP

ShortcutDescription
F5 + F6Copy…/Move…
+ + MExtract method
+ + NInline…
+ TRefactor this…
+ + LReformat code
+ + C / + + PIntroduce constant/parameter
+ F6Rename…
+ + V / + + FIntroduce variable/field
+ F6Change signature…
+ Safe delete…

BUILD, RUN, AND DEBUG

ShortcutDescription
+ F8Step out
+ F10Show execution point
+ F8Toggle line breakpoint
+ F7Smart step into
+ + F2Stop background processes…
+ + R / + + DRun/debug selected configuration
+ + RRun context configuration
F8 + F7Step over/into
+ R / + DRun/debug current configuration
+ + + F8Toggle temporary line breakpoint
+ F8Evaluate expression…
+ + F8Edit/view breakpoint
+ + RResume program
+ + F9Force run to cursor
+ F9Run to cursor
+ F2Stop

NAVIGATE FROM SYMBOLS

ShortcutDescription
+ F7 + + F7Find usages/Find usages in file
+ BDeclaration
+ + F7Show usages
+ + F7Highlight usages in file
+ + BType declaration (JavaScript only)
+ + BImplementation(s)
+ USuper method

CREATE AND EDIT

ShortcutDescription
+ Quick definition
+ + CCopy document path
+ NGenerate code
+ + TSurround with…
+ + AFind any action inside the IDE
+ + QContext info
+ O + + IOverride/implement members
+ SSave all
+ + + / + + -Expand/collapse all
+ + + + -Expand/collapse code block
+ + UToggle case
+ + / + + Move line up/down
+ + + Extend/shrink selection
+ Start new line
+ + Complete statement
+ + J + + Join/split line
F1 + + F1Quick/external documentation
+ + VPaste from clipboard history
+ DDuplicate current line or selection
+ X / + C / + VCut/Copy/Paste
+ Delete line at caret
+ PParameter information
+ + IAuto-indent lines
+ /Comment with line comment
+ Show intention actions
+ + Type name completion
+ + OOptimize imports
+ / + + Basic/smart code completion

ANALYZE AND EXPLORE

ShortcutDescription
+ + + IRun inspection by name…
F2 + + F2Next/previous highlighted error
+ H / + + HType/call hierarchy
+ F1Show error description

FIND EVERYTHING

ShortcutDescription
Double + Search everywhere
+ G + / + GNext/previous occurence
+ + O / + + OGo to file/symbol
+ + F / + + RFind in path/Replace in path
+ F / + RFind/Replace
+ F12Go to file member
+ OGo to class

Download PyCharm MacOS Shortcut Keys Cheatsheet PDF

We provide a PyCharm macOS Shortcut Keys PDF download feature. Click the download button to get the file. Please note that generating the PDF may take some time, so please be patient. Download

About PyCharm

PyCharm, developed by JetBrains, is a leading Python IDE equipped with tools for professional development. It supports various Python frameworks and has advanced features like intelligent code assistance, debugging, and testing.

PyCharm Official Information

PyCharm Shortcut Keys FAQs

  1. What is the shortcut for reformatting code?
    Windows: Ctrl + Alt + L macOS: Cmd + Alt + L

  2. How can I quickly navigate to a file?
    Windows: Ctrl + Shift + N macOS: Cmd + Shift + O

  3. What is the shortcut for debugging?
    Windows: Shift + F9 macOS: Ctrl + D

  4. How do I view recent files?
    Windows: Ctrl + E macOS: Cmd + E

  5. What is the shortcut to duplicate a line?
    Windows: Ctrl + D macOS: Cmd + D

  6. How do I run a program?
    Windows: Shift + F10 macOS: Ctrl + R

  7. What is the shortcut to step into a function during debugging?
    Windows: F7 macOS: Cmd + Alt + I

  8. How can I navigate backward?
    Windows: Ctrl + Alt + Left macOS: Cmd + [

  9. What is the shortcut for smart code completion?
    Windows: Ctrl + Shift + Space macOS: Cmd + Shift + Space

Conclusion

Mastering PyCharm's shortcut keys can significantly enhance your productivity as a Python developer. With this comprehensive guide, you now have all the essential shortcuts at your fingertips. Explore and practice these shortcuts to streamline your workflow in PyCharm!

4.3/5 - (6 votes)