47 PythonWin Keyboard Shortcuts

Learn PythonWin Shortcuts for Windows

General Shortcuts

ActionPythonWin Shortcut Keys
Reformat the current paragraph/comment blockAlt + Q
Toggle view whitespaceCtrl + W
Expand the word at the cursor Pressing the key again expands to the next matchAlt + /
Auto-expand the attribute.
Toggle focus to/from the interactive windowAlt + I

Builtin hotkeys Shortcuts

ActionPythonWin Shortcut keys
Zoom-in for the current windowCtrl + +
Zoom-out for the current windowCtrl + –
Delete the word to the left of the cursorCtrl + Backspace
UndoCtrl + Z
RedoCtrl + Y
CutCtrl + X
CopyCtrl + C
PasteCtrl + V
Select AllCtrl + A
Delete the current lineCtrl + Shift + L
Transpose (swap) the current line with the line aboveCtrl + T
Convert the selection to lowercaseCtrl + U
Convert the selection to upper caseCtrl + Shift + U

Editor Shortcuts

ActionPythonWin Shortcuts
Move to the next bookmarkF2
Add or remove a bookmark on the current lineCtrl + F2
Prompt for and go a specific line numberCtrl + G
Adds a simple comment banner at the current locationAlt + B
Uncomment the selected regionShift + Alt + 3
Block comment on the selected regionAlt + 3
Uncomment the selected region (IDLE default keystroke)Alt + 4
Tabify the selected regionAlt + 5
Untabify the selected regionAlt + 6
Remove the selected region or one character or indent to the leftBackspace
Toggle the use of tabs for the current file (after confirmation)Ctrl + T
Change the indent width for the current fileAlt + U
Insert a newline and indentEnter
Insert an indent, perform a block indent if a selection exists, or accept an attribute selectionTab
Block dedent the selectionShift + Tab
Toggle view when editor splitter is openF6
If the current line is a collapsed fold, expand it (see Folding)+
Expand all folds in the current file (see Folding )Alt + +
If the current line is an expanded fold, collapse it (see Folding)
Collapse all folds in the current file regardless of how deep the fold becomes (see Folding)Alt + –
Expand or collapse all top-level folds in the current file*

Debugger Shortcuts

ActionPythonWin Shortcuts
Toggle breakpointF9
Run (ie, go)F5
Stop debuggingShift + F5
Single step into functionsF11
Step over functionsF10
Step out of the current functionShift + F11

Interactive Shortcuts

ActionPythonWin Shortcuts
Recall the previous command in the history listCtrl + Up Arrow Key
Recall the next command in the history listCtrl + Down Arrow Key

READ NEXT:

Back to top button