##// END OF EJS Templates
document tab and shift-tab in codemirror
Paul Ivanov -
Show More
@@ -1,42 +1,44 b''
1 .. _cm_keyboard:
1 .. _cm_keyboard:
2
2
3 Some additional Codemirror keyboard shortcuts
3 Some additional Codemirror keyboard shortcuts
4 =============================================
4 =============================================
5
5
6 Because each cell of the IPython notebook is powered by Codemirror,
6 Because each cell of the IPython notebook is powered by Codemirror,
7 you can actually use a set of predetermined keyboard shortcuts to
7 you can actually use a set of predetermined keyboard shortcuts to
8 write and manipulate your content easily:
8 write and manipulate your content easily:
9
9
10 ================= ============== ==================
10 ================= ============== ==================
11 Action PC shortcut Mac shortcut
11 Action PC shortcut Mac shortcut
12 ================= ============== ==================
12 ================= ============== ==================
13 newline & indent Enter Enter
13 newline & indent Enter Enter
14 toggle overwrite Insert Insert
14 toggle overwrite Insert Insert
15 code completion Tab Tab
16 help introspection Shift-Tab Shift-Tab
15 indent Ctrl-] Cmd-]
17 indent Ctrl-] Cmd-]
16 dedent Ctrl-[ Cmd-[
18 dedent Ctrl-[ Cmd-[
17 select all Ctrl-A Cmd-A
19 select all Ctrl-A Cmd-A
18 delete line Ctrl-D Cmd-D
20 delete line Ctrl-D Cmd-D
19 undo Ctrl-Z Cmd-Z
21 undo Ctrl-Z Cmd-Z
20 redo Ctrl-Shift-Z Cmd-Shift-Z
22 redo Ctrl-Shift-Z Cmd-Shift-Z
21 redo Ctrl-Y Cmd-Y
23 redo Ctrl-Y Cmd-Y
22 go to cell start Ctrl-Home Cmd-Up
24 go to cell start Ctrl-Home Cmd-Up
23 go to cell start Alt-Up Cmd-End
25 go to cell start Alt-Up Cmd-End
24 go to cell start PageUp PageUp
26 go to cell start PageUp PageUp
25 go to cell end Ctrl-End ---
27 go to cell end Ctrl-End ---
26 go to cell end Ctrl-Down Cmd-Down
28 go to cell end Ctrl-Down Cmd-Down
27 go to cell end PageDown PageDown
29 go to cell end PageDown PageDown
28 go one word left Ctrl-Left Alt-Left
30 go one word left Ctrl-Left Alt-Left
29 go one word right Ctrl-Right Alt-Right
31 go one word right Ctrl-Right Alt-Right
30 go to line start Alt-Left Cmd-Left
32 go to line start Alt-Left Cmd-Left
31 go to line start Home Home
33 go to line start Home Home
32 go to line end Alt-Right Cmd-Right
34 go to line end Alt-Right Cmd-Right
33 go to line end End End
35 go to line end End End
34 del word before Ctrl-Backspace Alt-Backspace
36 del word before Ctrl-Backspace Alt-Backspace
35 del word after --- Ctrl-Alt-Backspace
37 del word after --- Ctrl-Alt-Backspace
36 del word after Ctrl-Delete Alt-Delete
38 del word after Ctrl-Delete Alt-Delete
37 ================= ============== ==================
39 ================= ============== ==================
38
40
39 .. note::
41 .. note::
40
42
41 These shortcuts are valid for US keyboards, so some shortcuts can change
43 These shortcuts are valid for US keyboards, so some shortcuts can change
42 for non-US keyboards.
44 for non-US keyboards.
General Comments 0
You need to be logged in to leave comments. Login now