blob: beafc42acbf3295c7b1ffc26154b0e25258df71b [file] [log] [blame]
Guido van Rossumca5619c1998-10-13 17:32:27 +00001File menu:
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +00002
Guido van Rossumca5619c1998-10-13 17:32:27 +00003 New window -- create a new editing window
4 Open file... -- open an existing file from a dialog box
5 Open module... -- asks for a module name, finds it on sys.path,
6 and opens it; if there's a selection, it's the module name
7 Class browser... -- open a class browser for the current module
8 ---
9 Save -- save the current window to its associated file
10 Save As... -- save to a new file from a dialog box
11 Save Copy As... -- save to a new file without changing window name
12 ---
13 Close -- close current window; asks to save if unsaved
14 Exit -- close all windows; asks to save unsaved windows
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000015
Guido van Rossumca5619c1998-10-13 17:32:27 +000016Edit menu:
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000017
Guido van Rossumca5619c1998-10-13 17:32:27 +000018 Undo -- Undo last change to current window (max 1000 changes)
19 Redo -- Redo last undone change to current window
20 ---
21 Cut -- Copy selection into system-wide clipboard; then delete selection
22 Copy -- Copy selection into system-wide clipboard
23 Paste -- Insert system-wide clipboard into window
24 ---
25 Find... -- Search (case sensitive, Perl regular expression)
26 Find next -- Repeat last search
Guido van Rossum0903f2a1998-11-27 03:19:20 +000027 Find same -- Search for the string in the selection
Guido van Rossumca5619c1998-10-13 17:32:27 +000028 Go to line -- Ask for a line number and show that line
29 ---
30 Dedent region -- Shift selected lines left 4 spaces
31 Indent region -- Shift selected lines right 4 spaces
32 Comment out region -- Insert ## in front of selected lines
33 Uncomment region -- Remove leading # or ## from selected lines
34
35Windows menu:
36
37 Contains the names of all open windows. The Python Shell
38 entry at the top will recreate the shell window if it has
39 been closed.
40
41Debug menu (in the Python Shell window only):
42
43 Go to line from traceback -- look around the insert point for a
44 filename and linenumber, open the file, and show the line
45 Open stack viewer -- show the stack traceback of the last exception
46
47Basic editing and navigation:
48
49 Backspace deletes to the left; DEL deletes to the right
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000050 Arrow keys and Page Up/Down to move around
51 Home/End go to begin/end of line
52 Control-Home/End go to begin/end of file
Guido van Rossumca5619c1998-10-13 17:32:27 +000053 Some Emacs bindings may also work, e.g. ^F/^B/^P/^N/^A/^E
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000054
Guido van Rossum423938a1998-10-13 17:38:03 +000055 Word completion:
56
57 Alt-/ expands the word you have typed to match another word in
58 the same buffer. Repeat to get a different expansion.
59
Guido van Rossumca5619c1998-10-13 17:32:27 +000060Python Shell window:
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000061
62 ^C interrupts executing command
Guido van Rossumca5619c1998-10-13 17:32:27 +000063 ^D sends end-of-file; closes window if typed at >>> prompt
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000064
Guido van Rossum423938a1998-10-13 17:38:03 +000065 Command history:
66
67 Alt-p retrieves previous command matching what you have typed
68 Alt-n retrieves next
69 Hit return while on any previous command retrieves that command
70
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000071Python syntax colors: the coloring is applied in a background thread
72
73 Keywords orange
74 Strings green
75 Comments red
76 Definitions blue
77
78Console colors:
79
80 Console output red
81 stdout blue
82 stderr dark green
83 stdin purple