PythonWin keyboard shortcuts

PythonWin

Zeynel Abidin Öztürk -
35 days ago
- Shortcuts

Keyboard bindings in Pythonwin can be customized in default.cfg. This file has detailed comments, including how to create your own configuration based on the default. We listed the default keyboard shortcuts for Pythonwin below.

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.

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

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)

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

Ctrl +

Recall the previous command in the history list

Ctrl +

Recall the next command in the history list


Share this page on:

Program information

Program name: PythonWin PythonWin (Developer tools)

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.

Web page: wiki.python.org/moin/PythonWin

Last update: 20 Oct 2020

How easy to press shortcuts: 76%

More information >>

Updated: Updated program information. (2 updates.) 10/20/2020 2:04:27 PM New program added.
10/20/2020 2:09:13 PM Updated program information.

Shortcut count: 47

Platform detected: Windows or Linux (not macOS)

Similar programs



Advertisement

Join our mailing list!

Your email is kept private and we don't spam.