============================ PythonWin keyboard shortcuts ============================ First published at 10/20/2020 on https://defkey.com/pythonwin-shortcuts PythonWin is an interactive development environment (IDE) that is part of the Python for Windows extensions. It provides simple interface for editing and running Python programs in Windows. PythonWin has 47 shortcuts and we have listed all of them below. General ------- Alt + Q Reformat the current paragraph/comment block. Note this does NOT reformat code correctly - use only within comment blocks! Ctrl + W Toggle view whitespace. Alt + / Expand the word at the cursor. Pressing the key again expands to the next match. . Auto expand the attribute. Eg, typing "string." will display a listbox with the contents of the string module. Select an item with Tab or the mouse. Alt + I Toggle focus to/from the interactive window. Builtin hotkeys --------------- Ctrl + Num + Zoom-in for the current window. Non True-Type fonts may require multiple presses. Ctrl + Num - Zoom-out for the current window. Non True-Type fonts may require multiple presses. Ctrl + Backspace Delete the word to the left of the cursor. Ctrl + Z Undo Ctrl + Y Redo Ctrl + X Cut Ctrl + C Copy Ctrl + V Paste Ctrl + A Select All Ctrl + Shift + L Delete the current line Ctrl + T Transpose (swap) the current line with the line above Ctrl + U Convert the selection to lower case Ctrl + Shift + U Convert the selection to upper case Editor ------ F2 Move to the next bookmark. Ctrl + F2 Add or remove a bookmark on the current line. Ctrl + G Prompt for and goto a specific line number. Alt + B Adds a simple comment banner at the current location. Alt + 3 Block comment the selected region. Shift + Alt + 3 Uncomment the selected region. Alt + 4 Uncomment the selected region (IDLE default keystroke) Alt + 5 Tabify the selected region. Alt + 6 Untabify the selected region. Backspace Remove selected region or one character or indent to the left. Ctrl + T Toggle the use of tabs for the current file (after confirmation) Alt + U Change the indent width for the current file. Enter Insert a newline and indent. Tab Insert an indent, perform a block indent if a selection exists, or accept an attribute selection. Shift + Tab Block dedent the selection. F6 Toggle view when editor splitter is open. Num + If the current line is a collapsed fold, expand it (see Folding) Alt + Num + Expand all folds in the current file (see Folding ) Num - If the current line is an expanded fold, collapse it (see Folding) Alt + Num - Collapse all folds in the current file. regardless of how deep the fold becomes. (see Folding) Num * Expand or collapse all top-level folds in the current file. No second level or deeper folds are changed. If the first fold in the file is collapsed, all top-level folds are opened. Otherwise, all top-level folds are collapsed (see Folding) Debugger -------- F9 Toggle breakpoint F5 Run (ie, go) Shift + F5 Stop debugging F11 Single step into functions F10 Step over functions Shift + F11 Step out of the current function Interactive ----------- Ctrl + Up arrow Recall the previous command in the history list Ctrl + Down arrow Recall the next command in the history list Last modified on (UTC): Tuesday, October 20, 2020 Defkey © All rights reserved.