使用时的键盘快捷键代码编辑器
¥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
| | 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++ |
|
| | 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++ |
|
| | 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
| | 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++ |
|
| | 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++ |
|
| | 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
| | 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++ |
|
| | 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++ |
|
| | 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
| | 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++ |
|
| | 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
| | Action | Shortcut |
|-----------------------------|--------------------------|
| Start completion | ++control+space++ |
| Accept completion | ++enter++ **or** ++tab++ |
| Close completion | ++escape++ |
| Navigate completion options | ++up++ **or** ++down++ |
|
| | Action | Shortcut |
|-----------------------------|--------------------------|
| Start completion | ++control+space++ |
| Accept completion | ++enter++ **or** ++tab++ |
| Close completion | ++escape++ |
| Navigate completion options | ++up++ **or** ++down++ |
|
| | Action | Shortcut |
|-----------------------------|--------------------------|
| Start completion | ++control+space++ |
| Accept completion | ++enter++ **or** ++tab++ |
| Close completion | ++escape++ |
| Navigate completion options | ++up++ **or** ++down++ |
|
缩进
¥Indentation
| | Action | Shortcut |
|-------------|-----------------------------------------------|
| Indent more | ++tab++ **or** ++control+bracket-right++ |
| Indent less | ++shift+tab++ **or** ++control+bracket-left++ |
|
| | Action | Shortcut |
|-------------|---------------------------|
| Indent more | ++command+bracket-right++ |
| Indent less | ++command+bracket-left++ |
|
| | Action | Shortcut |
|-------------|-----------------------------------------------|
| Indent more | ++tab++ **or** ++control+bracket-right++ |
| Indent less | ++shift+tab++ **or** ++control+bracket-left++ |
|
代码折叠
¥Code Folding
| | 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++ |
|
| | 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++ |
|
| | 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
| | 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++ |
|
| | 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++ |
|
| | 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
| | Action | Shortcut |
|-----------------|----------------------------------------------|
| Format document | ++shift+alt+f++ |
|
| | Action | Shortcut |
|-----------------|----------------------------------------------|
| Format document | ++shift+command+f++ |
|
| | Action | Shortcut |
|-----------------|-----------------------------------------------|
| Format document | ++control+shift+i++ |
|
搜索与导航
¥Search & Navigation
| | 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++ |
|
| | 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++ |
|
| | 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++ |
|