You can use keyboard shortcuts in the article source code editor to help format your knowledge base articles. Below are the available source code editor shortcuts and their functions.
For information about editing source code, see Editing the source code of help center articles.
This article contains the following sections:
Standard editing
The following table lists the standard source code editor shortcuts for OS X and Windows.
Description | OS X | Windows |
Select all | Cmd-a | Ctrl-a |
Forward word | Opt-arrow-right | Alt-arrow-right |
Backwards word | Opt-arrow-left | Alt-arrow-left |
Move line up | Opt-arrow-up | Alt-arrow-up |
Move line down | Opt-arrow-down | Alt-arrow-down |
Copy line up | Shift-Opt-arrow-up | Shift-Alt-arrow-up |
Copy line down | Shift-Opt-arrow-down | Shift-Alt-arrow-down |
Blur editor | Escape | Escape |
Insert blank line | Cmd-Enter | Ctrl-Enter |
Select line | Ctrl-l | Alt-l |
Expand selection | Cmd-i | Ctrl-i |
Indent | Cmd-[ | Ctrl-[ |
Unindent | Cmd-] | Ctrl-] |
Indent selection | Cmd-Opt-\ | Ctrl-Alt-\ |
Delete line | Shift-Cmd-k | Shift-Ctrl-k |
Move to matching bracket | Shift-Cmd-\ | Shift-Ctrl-\ |
Toggle comment | Cmd-/ | Ctrl-/ |
Toggle block comment | Shift-Opt-a | Shift-Alt-a |
Search and multi-cursors
The following table lists the search and multi-cursor source code shortcuts for OS X and Windows.
Description | OS X | Windows |
Open search panel | Cmd-f | Ctrl-f |
Find next | Cmd-g | F3 |
Find previous | Cmd-Shift-g | Shift-F3 |
Go to line | Opt-g | Alt-g |
Select next occurrence | Cmd-d | Ctrl-d |
Undo selection | Cmd-u | Ctrl-u |
Redo selection | Cmd-Shift-u | Alt-u |
Folding
The following table lists the folding source code shortcuts for OS X and Windows.
Description | OS X | Windows |
Collapse fold | Cmd-Opt-[ | Ctrl-Shift-[ |
Expand fold | Cmd-Opt-] | Ctrl-Shift-] |
Collapse all folds | Ctrl-Opt-[ | Ctrl-Alt-[ |
Expand all folds | Ctrl-Opt-] | Ctrl-Alt-] |