PyCharm keyboard shortcuts
Windows · version 2025.2 · 48 shortcuts
Hotkeypediahotkeypedia.com
Run and debug
- Run the current fileCtrlShiftRCtrlShiftF10CtrlShiftF10
- Debug the current fileCtrlShiftDCtrlShiftF9CtrlShiftF9
- Run the last configurationCtrlRShiftF10ShiftF10
- Debug the last configurationCtrlDShiftF9ShiftF9
- Run the selection in the Python consoleOptionShiftEAltShiftEAltShiftE
- Toggle a breakpointCmdF8CtrlF8CtrlF8
- Step overF8F8F8
- Step intoF7F7F7
- Step outShiftF8ShiftF8ShiftF8
- ResumeOptionCmdRF9F9
- Run to the cursorOptionF9AltF9AltF9
- Evaluate an expressionOptionF8AltF8AltF8
Search and navigation
- Search everywhereShift,ShiftShift,ShiftShift,Shift
- Find an actionShiftCmdACtrlShiftACtrlShiftA
- Go to a classCmdOCtrlNCtrlN
- Go to a fileShiftCmdOCtrlShiftNCtrlShiftN
- Recent filesCmdECtrlECtrlE
- Go to a lineCmdLCtrlGCtrlG
- File structureCmdF12CtrlF12CtrlF12
- Go to the declarationCmdBCtrlBCtrlB
- Find usagesOptionF7AltF7AltF7
- BackCmd[CtrlAlt←CtrlAlt←
- ForwardCmd]CtrlAlt→CtrlAlt→
- Quick documentationF1CtrlQCtrlQ
- Find in filesShiftCmdFCtrlShiftFCtrlShiftF
- Replace in filesShiftCmdRCtrlShiftRCtrlShiftR
Editing
- Show intention actions and quick fixesOptionEnterAltEnterAltEnter
- Basic completionCtrlSpaceCtrlSpaceCtrlSpace
- Parameter infoCmdPCtrlPCtrlP
- Reformat codeOptionCmdLCtrlAltLCtrlAltL
- Optimize importsCtrlOptionOCtrlAltOCtrlAltO
- Comment with line commentCmd/Ctrl/Ctrl/
- Duplicate the lineCmdDCtrlDCtrlD
- Delete the lineCmdBackspaceCtrlYCtrlY
- Move the statement upShiftCmd↑CtrlShift↑CtrlShift↑
- Move the statement downShiftCmd↓CtrlShift↓CtrlShift↓
- Extend the selectionOption↑CtrlWCtrlW
- Surround with (if, try, with)OptionCmdTCtrlAltTCtrlAltT
- Generate codeCmdNAltInsertAltInsert
Refactoring and tools
- RenameShiftF6ShiftF6ShiftF6
- Extract methodOptionCmdMCtrlAltMCtrlAltM
- Extract variableOptionCmdVCtrlAltVCtrlAltV
- Refactor thisCtrlTCtrlAltShiftTCtrlAltShiftT
- TerminalOptionF12AltF12AltF12
- Project tool windowCmd1Alt1Alt1
- CommitCmdKCtrlKCtrlK
- PushShiftCmdKCtrlShiftKCtrlShiftK
- SettingsCmd,CtrlAltSCtrlAltS