Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>emacs-region-macosNew to Visual Studio Code? Get it now.
emacs-region-macos

emacs-region-macos

lmauromb

|
147 installs
| (0) | Free
this extension provides region selection like emacs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-emacs-region-macos

This is an extension for Visual Studio Code which provides region selection similar to that of Emacs.

Is a fork of the great vscode extension by t-yng.

Differences with the original extension

  • Key Binding for the cursor selection by word movement, from ctrl+right and ctrl+left to alt+right and alt+left.
  • Key Binding for the cursor selection by page up and page down removed.

Keybindings

key explanation
ctrl+f move selection cursor right
ctrl+b move selection cursor left
ctrl+p move selection cursor up
ctrl+n move selection cursor down
right move selection cursor right
left move selection cursor left
up move selection cursor up
down move selection cursor down
alt+right move selection cursor one word to the right
alt+left move selection cursor one word to the left
ctrl+a move selection cursor to start of line
ctrl+e move selection cursor to end of line
alt+shift+, move selection cursor to start of file
alt+shift+. move selection cursor to end of file
ctrl+y paste and stop selection
ctrl+w cut and stop selection
alt+w copy and stop selection
ctrl+space start region mode
ctrl+g exit region mode

Compatibility With Other Extensions

It is possible to combine this extension with other cursor movement extensions.

You can use the inRegionMode context flag in the when clause of your keybind to provide different behaviour for region mode vs. cursor mode. The default keybinds are laid out as follows:

({
  "key": "DESIRED KEY",
  "command": "CURSOR MOVE COMMAND",
  "when": "editorTextFocus && !inRegionMode"
},
{
  "key": "DESIRED KEY",
  "command": "CURSOR MOVE & SELECT COMMAND",
  "when": "editorTextFocus && inRegionMode"
})
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft