======================================== CodeMirror keyboard shortcuts (filtered) ======================================== First published at 5/19/2018 on https://defkey.com/codemirror-shortcuts CodeMirror is a JavaScript component, used to provide a code editor in a web browser. It has features like syntax highlighting, auto indentation, big document handling, customizable key bindings including Vi and Emacs modes. General (Windows) ----------------- Ctrl + A Select all Esc When multiple selections are present, deselect all but the primary selection Ctrl + D Delete line under the cursor Ctrl + Z Undo last change Ctrl + Y Redo the last undone change Alt + Left arrow Move cursor to the start of the line Right arrow Move the cursor one character right, going to the next line when hitting the end of line Ctrl + Left arrow Move to the left of the group before the cursor. A group is a stretch of word characters, a stretch of punctuation characters, a newline, or a stretch of more than one whitespace character Ctrl + Backspace Delete to the left of the group before the cursor Shift + Tab Auto-indent the current line or selection Ctrl + [ Dedent the current line or selection by one indent unit Insert Toggle the overwrite flag Ctrl + S Not defined by the core library, only referred to in key maps. Intended to provide an easy way for user code to define a save command Ctrl + F Find Ctrl + G Find next Shift + Ctrl + G Find previous Shift + Ctrl + F Replace General (Mac) ------------- Ctrl + K Emacs-style line killing. Deletes the part of the line after the cursor. If that consists only of whitespace, the newline at the end of the line is also deleted Cmd + Up arrow Move cursor to the start of the document Shift + Tab Auto-indent the current line or selection Source: CodeMirror manual Last modified on (UTC): Saturday, January 16, 2021 Defkey © All rights reserved.