CodeMirror keyboard shortcuts

CodeMirror  

Zeynel Öztürk -
6 years ago
- Shortcuts
3
Ctrl + A

Select all

1
Esc

When multiple selections are present, deselect all but the primary selection

1
Ctrl + D

Delete line under the cursor

2
Ctrl + Z

Undo last change

4
Ctrl + Y

Redo the last undone change

1
Alt +

Move cursor to the start of the line

1
Ctrl +

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

1
Ctrl + Backspace

Delete to the left of the group before the cursor

3
↑  Shift + Tab

Auto-indent the current line or selection

1
Ctrl + [

Dedent the current line or selection by one indent unit

1
Insert

Toggle the overwrite flag

1
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

0
Ctrl + F

Find

2
Ctrl + G

Find next

0
↑  Shift + Ctrl + G

Find previous

3
↑  Shift + Ctrl + F

Replace

0
↑  Shift + Ctrl + R

Replace all. Not defined by the core library, but defined in the search addon (or custom client addons)

Advertisement

1
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

0
⌘ Cmd +

Move cursor to the start of the document

2
↑  Shift + Tab

Auto-indent the current line or selection


Share this page on:
Is this page helpful?
0 0

Program information

Program name: CodeMirror CodeMirror (Developer tools)

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.

Web page: codemirror.net

Last update: 1/16/2021 8:54 AM UTC

How easy to press shortcuts: 82%

More information >>

Shortcut count: 91

Platform detected: Windows and macOS mixed

Similar programs




What is your favorite CodeMirror hotkey? Do you have any useful tips for it? Let other users know below.


 

yurenchen OP says : 2 years ago 12/12/2021 11:04 AM
I wonder how to move line up/down use shortcuts?
( as alt+up/down in vscode )