Skip to content

使用时的键盘快捷键代码编辑器#

¥Keyboard shortcuts when using the Code editor

代码节点编辑环境支持一系列键盘快捷键,以加快和增强你的操作体验。选择相应的选项卡以查看适用于你操作系统的相关快捷方式。

¥The Code node editing environment supports a range of keyboard shortcuts to speed up and enhance your experience. Select the appropriate tab to see the relevant shortcuts for your operating system.

光标移动#

¥Cursor Movement

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
| Action                    | Shortcut                         |
|---------------------------|----------------------------------|
| Move cursor left          | ++left++                         |
| Move cursor right         | ++right++                        |
| Move cursor up            | ++up++                           |
| Move cursor down          | ++down++                         |
| Move cursor by word left  | ++control+left++                 |
| Move cursor by word right | ++control+right++                |
| Move to line start        | ++home++ **or** ++control+left++ |
| Move to line end          | ++end++ or ++control+right++     |
| Move to document start    | ++control+home++                 |
| Move to document end      | ++control+end++                  |
| Move page up              | ++page-up++                      |
| Move page down            | ++page-down++                    |
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
| Action                    | Shortcut                               |
|---------------------------|----------------------------------------|
| Move cursor left          | ++left++ **or** ++control+b++          |
| Move cursor right         | ++right++ **or** ++control+f++         |
| Move cursor up            | ++up++ **or** ++control+p++            |
| Move cursor down          | ++down++ **or** ++control+n++          |
| Move cursor by word left  | ++option+left++                        |
| Move cursor by word right | ++option+right++                       |
| Move to line start        | ++command+left++ **or** ++control+a++  |
| Move to line end          | ++command+right++ **or** ++control+e++ |
| Move to document start    | ++command+up++                         |
| Move to document end      | ++command+down++                       |
| Move page up              | ++page-up++ **or** ++option+v++        |
| Move page down            | ++page-down++ **or** ++control+v++     |
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
| Action                    | Shortcut                         |
|---------------------------|----------------------------------|
| Move cursor left          | ++left++                         |
| Move cursor right         | ++right++                        |
| Move cursor up            | ++up++                           |
| Move cursor down          | ++down++                         |
| Move cursor by word left  | ++control+left++                 |
| Move cursor by word right | ++control+right++                |
| Move to line start        | ++home++ **or** ++control+left++ |
| Move to line end          | ++end++ or ++control+right++     |
| Move to document start    | ++control+home++                 |
| Move to document end      | ++control+end++                  |
| Move page up              | ++page-up++                      |
| Move page down            | ++page-down++                    |

选择#

¥Selection

1
2
3
4
5
6
7
8
| Action                          | Shortcut                    |
|---------------------------------|-----------------------------|
| Selection with any movement key | ++shift++ + [Movement Key]  |
| Select all                      | ++control+a++               |
| Select line                     | ++control+l++               |
| Select next occurrence          | ++control+d++               |
| Select all occurrences          | ++shift+control+l++         |
| Go to matching bracket          | ++shift+control+backslash++ |
1
2
3
4
5
6
7
| Action                          | Shortcut                    |
|---------------------------------|-----------------------------|
| Selection with any movement key | ++shift++ + [Movement Key]  |
| Select all                      | ++command+a++               |
| Select line                     | ++command+l++               |
| Select next occurrence          | ++command+d++               |
| Go to matching bracket          | ++shift+command+backslash++ |
1
2
3
4
5
6
7
8
| Action                          | Shortcut                    |
|---------------------------------|-----------------------------|
| Selection with any movement key | ++shift++ + [Movement Key]  |
| Select all                      | ++control+a++               |
| Select line                     | ++control+l++               |
| Select next occurrence          | ++control+d++               |
| Select all occurrences          | ++shift+control+l++         |
| Go to matching bracket          | ++shift+control+backslash++ |

基本操作#

¥Basic Operations

1
2
3
4
5
6
7
8
9
| Action                    | Shortcut                                 |
|---------------------------|------------------------------------------|
| New line with indentation | ++enter++                                |
| Undo                      | ++control+z++                            |
| Redo                      | ++control+y++ **or** ++control+shift+z++ |
| Undo selection            | ++control+u++                            |
| Copy                      | ++control+c++                            |
| Cut                       | ++control+x++                            |
| Paste                     | ++control+v++                           |
1
2
3
4
5
6
7
8
9
| Action                    | Shortcut                                 |
|---------------------------|------------------------------------------|
| New line with indentation | ++enter++                                |
| Undo                      | ++command+z++                            |
| Redo                      | ++command+y++ **or** ++command+shift+z++ |
| Undo selection            | ++command+u++                            |
| Copy                      | ++command+c++                            |
| Cut                       | ++command+x++                            |
| Paste                     | ++command+v++                            |
1
2
3
4
5
6
7
8
9
| Action                    | Shortcut                                 |
|---------------------------|------------------------------------------|
| New line with indentation | ++enter++                                |
| Undo                      | ++control+z++                            |
| Redo                      | ++control+y++ **or** ++control+shift+z++ |
| Undo selection            | ++control+u++                            |
| Copy                      | ++control+c++                            |
| Cut                       | ++control+x++                            |
| Paste                     | ++control+v++                            |

删除操作#

¥Delete Operations

1
2
3
4
5
6
7
| Action                 | Shortcut              |
|------------------------|-----------------------|
| Delete character left  | ++backspace++         |
| Delete character right | ++delete++            |
| Delete word left       | ++control+backspace++ |
| Delete word right      | ++control+delete++    |
| Delete line            | ++shift+control+k++   |
1
2
3
4
5
6
7
8
9
| Action                 | Shortcut                                                |
|------------------------|---------------------------------------------------------|
| Delete character left  | ++backspace++                                           |
| Delete character right | ++delete++                                              |
| Delete word left       | ++option+backspace++ **or** ++control+command+h++       |
| Delete word right      | ++option+delete++  **or** ++function+option+backspace++ |
| Delete line            | ++shift+command+k++                                     |
| Delete to line start   | ++command+backspace++                                   |
| Delete to line end     | ++command+delete++ **or** ++control+k++                 |
1
2
3
4
5
6
7
| Action                 | Shortcut              |
|------------------------|-----------------------|
| Delete character left  | ++backspace++         |
| Delete character right | ++delete++            |
| Delete word left       | ++control+backspace++ |
| Delete word right      | ++control+delete++    |
| Delete line            | ++shift+control+k++   |

线路操作#

¥Line Operations

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
| Action               | Shortcut                             |
|----------------------|--------------------------------------|
| Move line up         | ++alt+up++                           |
| Move line down       | ++alt+down++                         |
| Copy line up         | ++shift+alt+up++                     |
| Copy line down       | ++shift+alt+down++                   |
| Toggle line comment  | ++control+slash++                    |
| Add line comment     | ++control+k++ **then** ++control+c++ |
| Remove line comment  | ++control+k++ **then** ++control+u++ |
| Toggle block comment | ++shift+alt+a++                      |
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
| Action               | Shortcut                             |
|----------------------|--------------------------------------|
| Move line up         | ++option+up++                        |
| Move line down       | ++option+down++                      |
| Copy line up         | ++shift+option+up++                  |
| Copy line down       | ++shift+option+down++                |
| Toggle line comment  | ++command+slash++                    |
| Add line comment     | ++command+k++ **then** ++command+c++ |
| Remove line comment  | ++command+k++ **then** ++command+u++ |
| Toggle block comment | ++shift+option+a++                   |
| Split line           | ++control+o++                        |
| Transpose characters | ++control+t++                        |
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
| Action               | Shortcut                             |
|----------------------|--------------------------------------|
| Move line up         | ++alt+up++                           |
| Move line down       | ++alt+down++                         |
| Copy line up         | ++shift+alt+up++                     |
| Copy line down       | ++shift+alt+down++                   |
| Toggle line comment  | ++control+slash++                    |
| Add line comment     | ++control+k++ **then** ++control+c++ |
| Remove line comment  | ++control+k++ **then** ++control+c++ |
| Toggle block comment | ++shift+alt+a++                      |

自动补齐#

¥Autocomplete

1
2
3
4
5
6
| Action                      | Shortcut                 |
|-----------------------------|--------------------------|
| Start completion            | ++control+space++        |
| Accept completion           | ++enter++ **or** ++tab++ |
| Close completion            | ++escape++               |
| Navigate completion options | ++up++ **or** ++down++   |
1
2
3
4
5
6
| Action                      | Shortcut                 |
|-----------------------------|--------------------------|
| Start completion            | ++control+space++        |
| Accept completion           | ++enter++ **or** ++tab++ |
| Close completion            | ++escape++               |
| Navigate completion options | ++up++ **or** ++down++   |
1
2
3
4
5
6
| Action                      | Shortcut                 |
|-----------------------------|--------------------------|
| Start completion            | ++control+space++        |
| Accept completion           | ++enter++ **or** ++tab++ |
| Close completion            | ++escape++               |
| Navigate completion options | ++up++ **or** ++down++   |

缩进#

¥Indentation

1
2
3
4
| Action      | Shortcut                                      |
|-------------|-----------------------------------------------|
| Indent more | ++tab++ **or** ++control+bracket-right++      |
| Indent less | ++shift+tab++ **or** ++control+bracket-left++ |
1
2
3
4
| Action      | Shortcut                  |
|-------------|---------------------------|
| Indent more | ++command+bracket-right++ |
| Indent less | ++command+bracket-left++  |
1
2
3
4
| Action      | Shortcut                                      |
|-------------|-----------------------------------------------|
| Indent more | ++tab++ **or** ++control+bracket-right++      |
| Indent less | ++shift+tab++ **or** ++control+bracket-left++ |

代码折叠#

¥Code Folding

1
2
3
4
5
6
| Action      | Shortcut                             |
|-------------|--------------------------------------|
| Fold code   | ++control+shift+bracket-left++       |
| Unfold code | ++control+shift+bracket-right++      |
| Fold all    | ++control+k++ **then** ++control+0++ |
| Unfold all  | ++control+k++ **then** ++control+j++ |
1
2
3
4
5
6
| Action      | Shortcut                             |
|-------------|--------------------------------------|
| Fold code   | ++command+option+bracket-left++      |
| Unfold code | ++command+option+bracket-right++     |
| Fold all    | ++command+k++ **then** ++command+0++ |
| Unfold all  | ++command+k++ **then** ++command+j++ |
1
2
3
4
5
6
| Action      | Shortcut                             |
|-------------|--------------------------------------|
| Fold code   | ++control+shift+bracket-left++       |
| Unfold code | ++control+shift+bracket-right++      |
| Fold all    | ++control+k++ **then** ++control+0++ |
| Unfold all  | ++control+k++ **then** ++control+j++ |

多光标#

¥Multi-cursor

1
2
3
4
5
6
7
| Action                       | Shortcut             |
|------------------------------|----------------------|
| Add cursor at click position | ++alt+left-button++  |
| Add cursor above             | ++control+alt+up++   |
| Add cursor below             | ++control+alt+down++ |
| Add cursors to line ends     | ++shift+alt+i++      |
| Clear multiple cursors       | ++escape++           |
1
2
3
4
5
6
7
| Action                       | Shortcut                |
|------------------------------|-------------------------|
| Add cursor at click position | ++option+left-button++  |
| Add cursor above             | ++control+option+up++   |
| Add cursor below             | ++control+option+down++ |
| Add cursors to line ends     | ++shift+option+i++      |
| Clear multiple cursors       | ++escape++              |
1
2
3
4
5
6
7
| Action                       | Shortcut            |
|------------------------------|---------------------|
| Add cursor at click position | ++alt+left-button++ |
| Add cursor above             | ++shift+alt+up++    |
| Add cursor below             | ++shift+alt+down++  |
| Add cursors to line ends     | ++shift+alt+i++     |
| Clear multiple cursors       | ++escape++          |

格式化#

¥Formatting

1
2
3
| Action          | Shortcut                                     |
|-----------------|----------------------------------------------|
| Format document | ++shift+alt+f++ |
1
2
3
| Action          | Shortcut                                     |
|-----------------|----------------------------------------------|
| Format document | ++shift+command+f++ |
1
2
3
| Action          | Shortcut                                      |
|-----------------|-----------------------------------------------|
| Format document | ++control+shift+i++ |

搜索与导航#

¥Search & Navigation

1
2
3
4
5
6
7
8
9
| Action          | Shortcut              |
|-----------------|-----------------------|
| Open Search     | ++control+f++         |
| Select All      | ++alt+enter++         |
| Replace All     | ++control+alt+enter++ |
| Go To Line      | ++control+g++         |
| Next Diagnostic | ++f8++                |
| Previous Diag.  | ++shift+f8++          |
| Open Lint Panel | ++control+shift+m++   |
1
2
3
4
5
6
7
8
9
| Action          | Shortcut              |
|-----------------|-----------------------|
| Open Search     | ++command+f++         |
| Select All      | ++command+enter++     |
| Replace All     | ++command+option+enter++ |
| Go To Line      | ++command+g++         |
| Next Diagnostic | ++f8++                |
| Previous Diag.  | ++shift+f8++          |
| Open Lint Panel | ++command+shift+m++   |
1
2
3
4
5
6
7
8
9
| Action          | Shortcut              |
|-----------------|-----------------------|
| Open Search     | ++control+f++         |
| Select All      | ++alt+enter++         |
| Replace All     | ++control+alt+enter++ |
| Go To Line      | ++control+g++         |
| Next Diagnostic | ++f8++                |
| Previous Diag.  | ++shift+f8++          |
| Open Lint Panel | ++control+shift+m++   |