blob: 80c669faad49f114409be173a571cd67df872346 [file] [log] [blame]
Guido van Rossum504b0bf1999-01-02 21:28:54 +00001[See end for tips.]
2
Guido van Rossumdd0d3351999-01-09 21:57:56 +00003Click on the dotted line at the top of a menu to "tear it off": a
4separate window containing the menu is created.
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +00005
Guido van Rossumdd0d3351999-01-09 21:57:56 +00006File menu:
7 (This should speak for itself.)
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +00008
Guido van Rossumca5619c1998-10-13 17:32:27 +00009Edit menu:
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000010
Guido van Rossumca5619c1998-10-13 17:32:27 +000011 Undo -- Undo last change to current window (max 1000 changes)
12 Redo -- Redo last undone change to current window
13 ---
14 Cut -- Copy selection into system-wide clipboard; then delete selection
15 Copy -- Copy selection into system-wide clipboard
16 Paste -- Insert system-wide clipboard into window
Guido van Rossumdd0d3351999-01-09 21:57:56 +000017 Select All -- Select the entire contents of the edit buffer
Guido van Rossumca5619c1998-10-13 17:32:27 +000018 ---
Guido van Rossumdd0d3351999-01-09 21:57:56 +000019 Find... -- Open a search dialog box with many options
20 Find again -- Repeat last search
21 Find selection -- Search for the string in the selection
22 Find in Files... -- Open a search dialog box for searching files
23 Replace... -- Open a search-and-replace dialog box
Guido van Rossumca5619c1998-10-13 17:32:27 +000024 Go to line -- Ask for a line number and show that line
25 ---
Guido van Rossumca5619c1998-10-13 17:32:27 +000026 Indent region -- Shift selected lines right 4 spaces
Guido van Rossumdd0d3351999-01-09 21:57:56 +000027 Dedent region -- Shift selected lines left 4 spaces
Guido van Rossumca5619c1998-10-13 17:32:27 +000028 Comment out region -- Insert ## in front of selected lines
29 Uncomment region -- Remove leading # or ## from selected lines
Guido van Rossumdd0d3351999-01-09 21:57:56 +000030 Tabify region -- Turns *leading* stretches of spaces into tabs
31 Untabify region -- Turn *all* tabs into the right number of spaces
32 Expand word -- Expand the word you have typed to match another
33 word in the same buffer; repeat to get a different expansion
34 Format Paragraph -- Reformat the current blank-line-separated paragraph
35 ---
36 Run module -- Import or reload the current module
37 Debug module -- Ditto, under debugger control
Guido van Rossumca5619c1998-10-13 17:32:27 +000038
39Windows menu:
40
Guido van Rossumdd0d3351999-01-09 21:57:56 +000041 Zoom Height -- toggles the window between normal size (24x80)
42 and maximum height.
43 ---
44 The rest of this menu lists the names of all open windows;
45 select one to bring it to the foreground (deiconifying it if
46 necessary).
Guido van Rossumca5619c1998-10-13 17:32:27 +000047
48Debug menu (in the Python Shell window only):
49
Guido van Rossumdd0d3351999-01-09 21:57:56 +000050 Go to file/line -- look around the insert point for a filename
51 and linenumber, open the file, and show the line
Guido van Rossumca5619c1998-10-13 17:32:27 +000052 Open stack viewer -- show the stack traceback of the last exception
Guido van Rossumdd0d3351999-01-09 21:57:56 +000053 Debugger toggle -- Run commands in the shell under the debugger
54 JIT Stack viewer toggle -- Open stack viewer on traceback
Guido van Rossumca5619c1998-10-13 17:32:27 +000055
56Basic editing and navigation:
57
58 Backspace deletes to the left; DEL deletes to the right
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000059 Arrow keys and Page Up/Down to move around
60 Home/End go to begin/end of line
61 Control-Home/End go to begin/end of file
Guido van Rossumdd0d3351999-01-09 21:57:56 +000062 Some Emacs bindings may also work, e.g. ^B/^P/^A/^E/^D/^L
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000063
Guido van Rossumdd0d3351999-01-09 21:57:56 +000064Automatic indentation:
Guido van Rossum423938a1998-10-13 17:38:03 +000065
Guido van Rossumdd0d3351999-01-09 21:57:56 +000066 After a block-opening statement, the next line is indented by
67 4 spaces (in the Python Shell window by one tab). In leading
68 indentation, Backspace deletes 4 spaces if they are there.
69 Also see the indent/dedent region commands.
Guido van Rossum423938a1998-10-13 17:38:03 +000070
Guido van Rossumca5619c1998-10-13 17:32:27 +000071Python Shell window:
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000072
73 ^C interrupts executing command
Guido van Rossumca5619c1998-10-13 17:32:27 +000074 ^D sends end-of-file; closes window if typed at >>> prompt
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000075
Guido van Rossum423938a1998-10-13 17:38:03 +000076 Command history:
77
78 Alt-p retrieves previous command matching what you have typed
79 Alt-n retrieves next
Guido van Rossumdd0d3351999-01-09 21:57:56 +000080 Return while on any previous command retrieves that command
81 Alt-/ (Expand word) is also useful here
Guido van Rossum423938a1998-10-13 17:38:03 +000082
Guido van Rossumdd0d3351999-01-09 21:57:56 +000083Python syntax colors: the coloring is applied in the background.
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000084
85 Keywords orange
86 Strings green
87 Comments red
88 Definitions blue
89
Guido van Rossum504b0bf1999-01-02 21:28:54 +000090Shell colors:
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000091
Guido van Rossumdd0d3351999-01-09 21:57:56 +000092 Console output brown
Guido van Rossum3b4ca0d1998-10-10 18:48:31 +000093 stdout blue
94 stderr dark green
Guido van Rossum504b0bf1999-01-02 21:28:54 +000095 stdin black
96
97Tips:
98 To change the font on Windows, open EditorWindow.py and change
99 text['font'] = ("verdana", 8)
100 to, e.g.,
101 text['font'] = ("courier new", 10)
102
Guido van Rossumf9038981999-01-04 13:05:58 +0000103 To change the Python syntax colors, edit the tagdefs table in
104 ColorDelegator.py; to change the shell colors, edit the tagdefs
105 table in PyShell.py.