This topic introduces the code editor and common shortcuts in the editor.

Shortcuts for Google Chrome in Windows

Ctrl + S: Save the configuration.

Ctrl + Z: Cancel the action.

Ctrl + Y: Redo the action.

Ctrl + D: Select identical strings.

Ctrl + X: Cut a line.

Ctrl + Shift + K: Delete a line.

Ctrl + C: Copy the current line.

Ctrl + I: Select a line.

Shift + Alt + Drag: Multi-select consecutive lines to modify the content.

Alt + Click: Multi-select specific lines and indent them by pressing Tab.

Ctrl + Shift + L: Place the cursor after identical strings for batch edit.

Ctrl + F: Search for specific content.

Ctrl + H: Replace the searched data with desired content.

Ctrl + G: Locate the specific line.

Alt + Enter: Select all matching strings.

Alt + ↓ or Alt + ↑: Move the current line down or up.

Shift + Alt + ↓ or Shift + Alt + ↑: Copy the current line down or up.

Shift + Ctrl + K: Delete the current line.

Ctrl + Enter or Shift + Ctrl + Enter: Move the cursor one line down or up.

Shift + Ctrl + \: Move the cursor to matching parentheses.

Ctrl + ] or Ctrl + [: Increase or decrease the units of indentation.

Home or End: Move the cursor to the beginning or end of the current line.

Ctrl + Home or Ctrl + End: Move the cursor to the beginning or end of the current file.

Ctrl + → or Ctrl + ←: Move the cursor one word to the right or left.

Shift + Ctrl + [ or Shift + Ctrl + ]: Hide or show the area pointed by the cursor.

Ctrl + K + Ctrl + [ or Ctrl + K + Ctrl + ]: Hide or show the sub-area pointed by the cursor.

Ctrl + K + Ctrl + 0 or Ctrl + K + Ctrl + J: Hide or show all areas.

Ctrl + /: Comment or uncomment the line or code block pointed by the cursor.

Shortcuts for Google Chrome in Mac

cmd + S: Save the configuration.

cmd + Z: Cancel the action.

cmd + Y: Redo the action.

cmd + D: Select identical strings.

cmd + X: Cut a line.

cmd + Shift + K: Delete a line.

cmd + C: Copy the current line.

cmd + I: Select the current line.

cmd + F: Search for specific content.

cmd + alt + F: Replace the searched data with desired content.

alt + ↓ or alt + ↑: Move the current line down or up.

shift + alt + ↓ or shift + alt + ↑: Copy the current line down or up.

shift + cmd + K: Delete the current line.

cmd + Enter or shift + cmd + Enter: Move the cursor one line down or up.

shift + cmd + \: Move the cursor to matching parentheses.

cmd + ] or cmd + [: Increase or decrease the units of indentation.

cmd + ← or cmd + →: Move the cursor to the beginning or end of the current line.

cmd + ↑ or cmd + ↓: Move the cursor to the beginning or end of the current file.

alt + → or alt + ←: Move the cursor one word to the right or left.

alt + cmd + [ or alt + cmd + ]: Hide or show the area pointed by the cursor.

cmd + K + cmd + [ or cmd + K + cmd + ]: Hide or show the subarea pointed by the cursor.

cmd + K + cmd + 0 or cmd + K + cmd + j: Hide or show all areas.

cmd + /: Comment or uncomment the line or code block pointed by the cursor.

Multiple selections

alt + Click: Insert cursors.

alt + cmd + ↑ or alt + cmd + ↓: Move cursors up or down.

cmd + U: Undo last cursor actions.

shift + alt + I: Insert cursors at the end of each line in the selected code block.

cmd + G or shift + cmd + G: Find the next or previous string.

cmd + F2: Select identical strings.

shift + cmd + L: Select identical lines.

alt + Enter: Select all matching strings.

shift + alt + Drag: Multi-select lines.

shift + alt + cmd + ↑ or shift + alt + cmd + ↓: Multi-select lines vertically.

shift + alt + cmd + ← or shift + alt + cmd + →: Multi-select lines horizontally.