SebastianZaha / vscode-emacs-friendly

Visual Studio Code plugin emulating Emacs functionality
https://marketplace.visualstudio.com/items?itemName=lfs.vscode-emacs-friendly
Apache License 2.0
142 stars 55 forks source link

vscode-emacs-friendly

This plugin provides emacs keybindings and workflow for Visual Studio Code and is a fork of the great vscode extension by hiro-sun.

It merges some of the pull requests in the original and other external helpers that make the extension a little less an exact copy of emacs behavior, and a little more friendly in interacting with the system clipboard and normal vscode interactions.

The following are some of the changes and enhancements from the original:

Move commands

Command Desc
C-f Move forward
C-b Move backward
C-n Move to the next line
C-p Move to the previous line
C-a Move to the beginning of line
C-e Move to the end of line
M-f Move forward by one word unit
M-b Move backward by one word unit
M-> Move to the end of buffer
M-< Move to the beginning of buffer
C-v Scroll down by one screen unit
M-v Scroll up by one screen unit
M-g g Jump to line (command palette)
M-g n Jump to next error
M-g p Jump to previous error
C-l Center screen on current line

Search Commands

Command Desc
C-s Search forward
C-r Search backward
A-% Replace
C-Enter Replace One Match (In replace dialog)
C-M-n Add selection to next find match

Edit commands

Command Desc
C-d Delete right (DEL)
C-h Delete left (BACKSPACE)
M-d Delete word
M-Bksp Delete word left
C-k Kill to line end
C-S-Bksp Kill entire line
C-o open-line
C-w Kill region
M-w Copy region to kill ring
C-y Yank
C-j Enter
C-m Enter
C-x C-o Delete blank lines around
C-x h Select All
C-x u (C-/, C-_) Undo
C-; Toggle line comment in and out
M-; Toggle region comment in and out
C-x C-l Convert to lower case
C-x C-u Convert to upper case

Other Commands

Command Desc
C-g Cancel
C-space Set mark
C-quote IntelliSense Suggestion
M-x Open command palette
C-M-SPC Toggle SideBar visibility
C-x z Toggle Zen Mode
C-x r Open Recent

File Commands

Command Desc
C-x C-s Save
C-x C-w Save as
C-x C-n Open new window

Tab / Buffer Manipulation Commands

Command Desc
C-x b Switch to another open buffer
C-x C-f QuickOpen a file
C-x k Close current tab (buffer)
C-x C-k Close all tabs
C-x 0 Close editors in the current group.
C-x 1 Close editors in other (split) group.
C-x 2 Split editor horizontal
C-x 3 Split editor vertical
C-x 4 Toggle split layout (vertical to horizontal)
C-x o Focus other split editor

Conflicts with default key bindings

More information

The logo is from the great Pacifica Icon Set.