Guido van Rossum | 504b0bf | 1999-01-02 21:28:54 +0000 | [diff] [blame] | 1 | [See end for tips.] |
| 2 | |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 3 | Click on the dotted line at the top of a menu to "tear it off": a |
| 4 | separate window containing the menu is created. |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 5 | |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 6 | File menu: |
| 7 | (This should speak for itself.) |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 8 | |
Guido van Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 9 | Edit menu: |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 10 | |
Guido van Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 11 | 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 Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 17 | Select All -- Select the entire contents of the edit buffer |
Guido van Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 18 | --- |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 19 | 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 Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 24 | Go to line -- Ask for a line number and show that line |
| 25 | --- |
Guido van Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 26 | Indent region -- Shift selected lines right 4 spaces |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 27 | Dedent region -- Shift selected lines left 4 spaces |
Guido van Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 28 | Comment out region -- Insert ## in front of selected lines |
| 29 | Uncomment region -- Remove leading # or ## from selected lines |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 30 | 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 Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 38 | |
| 39 | Windows menu: |
| 40 | |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 41 | 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 Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 47 | |
| 48 | Debug menu (in the Python Shell window only): |
| 49 | |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 50 | Go to file/line -- look around the insert point for a filename |
| 51 | and linenumber, open the file, and show the line |
Guido van Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 52 | Open stack viewer -- show the stack traceback of the last exception |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 53 | Debugger toggle -- Run commands in the shell under the debugger |
| 54 | JIT Stack viewer toggle -- Open stack viewer on traceback |
Guido van Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 55 | |
| 56 | Basic editing and navigation: |
| 57 | |
| 58 | Backspace deletes to the left; DEL deletes to the right |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 59 | 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 Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 62 | Some Emacs bindings may also work, e.g. ^B/^P/^A/^E/^D/^L |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 63 | |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 64 | Automatic indentation: |
Guido van Rossum | 423938a | 1998-10-13 17:38:03 +0000 | [diff] [blame] | 65 | |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 66 | 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 Rossum | 423938a | 1998-10-13 17:38:03 +0000 | [diff] [blame] | 70 | |
Guido van Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 71 | Python Shell window: |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 72 | |
| 73 | ^C interrupts executing command |
Guido van Rossum | ca5619c | 1998-10-13 17:32:27 +0000 | [diff] [blame] | 74 | ^D sends end-of-file; closes window if typed at >>> prompt |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 75 | |
Guido van Rossum | 423938a | 1998-10-13 17:38:03 +0000 | [diff] [blame] | 76 | Command history: |
| 77 | |
| 78 | Alt-p retrieves previous command matching what you have typed |
| 79 | Alt-n retrieves next |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 80 | Return while on any previous command retrieves that command |
| 81 | Alt-/ (Expand word) is also useful here |
Guido van Rossum | 423938a | 1998-10-13 17:38:03 +0000 | [diff] [blame] | 82 | |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 83 | Python syntax colors: the coloring is applied in the background. |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 84 | |
| 85 | Keywords orange |
| 86 | Strings green |
| 87 | Comments red |
| 88 | Definitions blue |
| 89 | |
Guido van Rossum | 504b0bf | 1999-01-02 21:28:54 +0000 | [diff] [blame] | 90 | Shell colors: |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 91 | |
Guido van Rossum | dd0d335 | 1999-01-09 21:57:56 +0000 | [diff] [blame] | 92 | Console output brown |
Guido van Rossum | 3b4ca0d | 1998-10-10 18:48:31 +0000 | [diff] [blame] | 93 | stdout blue |
| 94 | stderr dark green |
Guido van Rossum | 504b0bf | 1999-01-02 21:28:54 +0000 | [diff] [blame] | 95 | stdin black |
| 96 | |
| 97 | Tips: |
| 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 Rossum | f903898 | 1999-01-04 13:05:58 +0000 | [diff] [blame] | 103 | 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. |