summaryrefslogtreecommitdiffstats
path: root/Tools/idle/help.txt
blob: 6dbf2fac9ac236a3ae7fa6cfbc668afba4aa9436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Windows and files:

	^X ^N creates new empty text editor window
	^X ^C closes all windows
	Alt-F4 or ^X ^0 (that's control-x-control-zero) closes current window
	^X ^D opens a file from dialog box
	^X ^S saves to current file
	^X ^W saves to file from dialog box
	^X w save a copy to file from dialog box

Navigation:

	Arrow keys and Page Up/Down to move around
	Home/End go to begin/end of line
	Control-Home/End go to begin/end of file
	Some Emacs bindings may also work, e.g. ^A/^E

Searching: all searches are forward from the cursor without
wrap-around, case sensitive, Perl-style regular expression matches

	^S without a selection opens search dialog box
	^S with a selection searches for selected text
	^U ^S repeats last search
	Alt-G opens dialog box to go to a specific line

Editing:

	Backspace deletes left of cursor, Delete right of cursor
	Cut and paste use platform's conventions
	^[ or Alt-[ left-shifts (dedents) the current line or selection
	^] or Alt-] right-shifts (indents) the current line or selection
	Alt-/ expands last word you type (like Emacs dabbrev)

Undo:

	^Z undoes last change; repeat to undo more
	Alt-Z redoes last undone change; repeat to redo more

Console window:

	^C interrupts executing command
	^D sends end-of-file; closes console if typed at >>> prompt

	If you get a traceback, right-click on any line listing a
	filename and line number and select "Go to line from
	traceback" to open that file and go to the indicated line

Python syntax colors: the coloring is applied in a background thread

	Keywords	orange
	Strings		green
	Comments	red
	Definitions	blue

Console colors:

	Console output	red
	stdout		blue
	stderr		dark green
	stdin		purple