This topic describes the common shortcuts of the code editor.
Shortcuts for Google Chrome in Windows
Ctrl + S: Save.
Ctrl + Z: Undo.
Ctrl + Shift + Z: Redo.
Ctrl + D: Select next match.
Ctrl + L: Select current line.
Ctrl + X: Cut current line.
Ctrl + Shift + K: Delete current line.
Ctrl + C: Copy current line.
Shift + Alt + drag mouse: Select a column by dragging.
Alt + click mouse: Add a cursor at the clicked location.
Ctrl + Shift + L: Select all occurrences of the current selection.
Ctrl + F: Find.
Ctrl + H: Replace.
Ctrl + G: Go to line.
Ctrl + U: Undo last cursor operation.
Alt + Enter: Select all occurrences of the find match.
Alt + ↓ or Alt + ↑: Move the current line down or up.
Shift + Alt + ↓ or Shift + Alt + ↑: Copy the current line down or up.
Shift + Ctrl + \: Go to the matching bracket.
Ctrl + ] or Ctrl + [: Indent or outdent the current line.
Home or End: Go to the beginning or end of the line.
Ctrl + Home or Ctrl + End: Go to the beginning or end of the file.
Ctrl + → or Ctrl + ←: Move the cursor one word to the right or left.
Shift + Ctrl + [ or Shift + Ctrl + ]: Fold or unfold the current code region.
Ctrl + K + [ or Ctrl + K + ]: Fold or unfold the sub-region at the cursor.
Ctrl + K + 0 or Ctrl + K + j: Fold or unfold all regions.
Ctrl + /: Toggle a line or block comment.
Chrome on macOS
Cmd + S: Save.
Cmd + Z: Undo.
Cmd + Shift + Z: Redo.
Cmd + D: Select next match.
Cmd + X: Cut current line.
Cmd + Shift + K: Delete current line.
Cmd + C: Copy current line.
Cmd + F: Find.
Cmd + Alt + F: Replace.
Alt + ↓ or Alt + ↑: Move the current line down or up.
Shift + Alt + ↓ or Shift + Alt + ↑: Copy the current line down or up.
Shift + Cmd + \: Go to the matching bracket.
Cmd + ] or Cmd + [: Indent or outdent the current line.
Cmd + ← or Cmd + →: Go to the beginning or end of the line.
Cmd + ↑ or Cmd + ↓: Go to the beginning or end of the file.
Alt + → or Alt + ←: Move the cursor one word to the right or left.
Alt + Cmd + [ or Alt + Cmd + ]: Fold or unfold the current code region.
Cmd + K + [ or Cmd + K + ]: Fold or unfold the sub-region at the cursor.
Cmd + K + 0 or Cmd + K + j: Fold or unfold all regions.
Cmd + /: Toggle a line or block comment.
Multiple selections
Alt + click mouse: Add a cursor at the clicked location.
Alt + Cmd + ↑ or Alt + Cmd + ↓: Insert a cursor above or below.
Cmd + U: Undo last cursor operation.
Shift + Alt + I: Insert a cursor at the end of each selected line.
Cmd + G or Shift + Cmd + G: Find the next or previous occurrence.
Cmd + Shift + L or Cmd + F2: Select all occurrences of the current selection.
Alt + Enter: Select all occurrences of the find match.
Shift + Alt + drag mouse: Select a column by dragging.
Home or End: Go to the beginning or end of the line.
The code editor does not support custom keyboard shortcuts.