Skip to content

Keybindings

When working with a physical keyboard, you can use key bindings for performing various text actions.

The editor provides support for some key bindings by default. The currently supported key bindings are mostly similar to Android Studio/IntelliJ IDEA.

Built-in Keybindings

The following key bindings are currently supported by the editor :

KeybindingDescription
Ctrl + ASelect all.
Ctrl + XIf no content is selected, cuts the current line. Otherwise, performs the usual cut operation.
Ctrl + CIf no content is selected, selects and copies the current line. Otherwise, performs the usual copy operation.
Ctrl + VThe usual paste action.
Ctrl + ZUndo the last action.
Ctrl + RRedo the last action.
Ctrl + DIf content is selected, duplicates the selected content else duplicates the current line.
Ctrl + WSelects the word at the left selection handle.
Ctrl + LeftMove to word start. If the cursor is already at the current word's start, moves the cursor to previous word's start, skipping whitespaces.
Ctrl + RightMove to word end. If the cursor is already at the current word's end, moves the cursor to next word's end, skipping whitespaces.
Ctrl + UpScroll up by one row.
Ctrl + DownScroll down by one row.
Ctrl + HomeMove the cursor to the beginning of content.
Ctrl + EndMove the cursor to the end of content.
Ctrl + PgUpMove the cursor to the page top.
Ctrl + PgDnMove the cursor to the page bottom.
Ctrl + EnterSplit line. If content is selected, deletes the selected content then splits the line.
Ctrl + Shift + LeftSame as Ctrl+Left, but starts or updates the selection.
Ctrl + Shift + RightSame as Ctrl+Right, but starts or updates the selection.
Ctrl + Shift + UpMove the current line (or all selected lines) up by one line.
Ctrl + Shift + DownMove the current line (or all selected lines) down by one line.
Ctrl + Shift + HomeSame as Ctrl+Home, but starts or updates the selection.
Ctrl + Shift + EndSame as Ctrl+End, but starts or updates the selection.
Ctrl + Shift + PgUpMove the cursor to the page top with selection.
Ctrl + Shift + PgDnMove the cursor to the page bottom with selection.
Ctrl + Alt + EnterStart a new line before current line.
Ctrl + Shift + JJoin current line and next line.
Shift + EnterStart a new line.
Selection + TABIf the text is selected, pressing the TAB key indents all selected lines.
Shift + TABUnindents the current line. If the text is selected, unindents all the selected lines.

Custom Keybindings

You can subscribe to KeyBindingEvent and add your own key bindings. You can even override the default key bindings and perform actions of your own.

Released under the LGPL-2.1 License.