vscode-emacs

September 8, 2016 · View on GitHub

This is emacs like plugin for Visual Studio Code.

Operation

Use Shift+DEL to cut to clipboard, the Ctrl+C is not overridden. Use Shift+Insert to paste from clipboard.

Move command

CommandStatusDesc
C-fOKMove forward
C-bOKMove backward
C-nOKMove to the next line
C-pOKMove to the previous line
C-aOKMove to the beginning of line
C-eOKMove to the end of line
M-fOKMove forward by one word unit
M-bOKMove backward by one word unit
M->OKMove to the end of buffer
M-<OKMove to the beginning of buffer
C-vOKScroll down by one screen unit
M-vOKScroll up by one screen unit
C-x C-n-Set goal column
C-u C-x C-n-Deactivate C-x C-n
M-g gOKJump to line (command palette)

Search Command

CommandStatusDesc
C-sOKSearch forward
C-rOKSearch backward
C-M-nOKAdd selection to next find match
C-l-Use ext install keyboard-scroll to activate

Edit command

CommandStatusDesc
C-dOKDelete right (DEL)
C-hOKDelete left (BACKSPACE)
M-dOKDelete word
C-kOKKill to line end
C-wOKKill region
M-wOKCopy region to kill ring
C-yOKYank
C-jOKLine Feed
C-m-Carriage Return
C-i-Horizontal Tab
C-x C-oOKDelete blank lines around
C-x hOKSelect All
C-x u (C-/)OKUndo
C-;Toggle line comment in and out
M-;Toggle region comment in and out

Other Command

CommandStatusDesc
C-gOKCancel
C-spaceOKSet mark
C-\-IME control
C-quoteOKIntelliSense Suggestion
C-doublequoteIntelliSense Parameter Hint
M-xOKOpen command palette
M-/(dabbrev)-Auto-completion
M-num command-Repeat command num times
C-M-SPCOKToggle SideBar visibility

File Command

CommandStatusDesc
C-oOKOpen a file
C-x bOKQuickOpen a file
C-x C-fOKOpen a working directory
C-x C-sOKSave
C-x C-wOKSave as
C-x i-Insert buffer from file
C-x C-d-Open Folder
C-x C-n-Open new window
C-x C-b-Create new file and open

Conflicts with default key bindings

  • ctrl+d: editor.action.addSelectionToNextFindMatch => Use ctrl+alt+n instead;
  • ctrl+g: workbench.action.gotoLine => Use alt+g g instead;
  • ctrl+b: workbench.action.toggleSidebarVisibility => Use ctrl+alt+space instead;
  • ctrl+space: toggleSuggestionDetails, editor.action.triggerSuggest => Use ctrl+' instead;
  • ctrl+x: editor.action.clipboardCutAction => Use shift+delete instead;
  • ctrl+v: editor.action.clipboardPasteAction => Use shift+insert instead;
  • ctrl+k: editor.debug.action.showDebugHover, editor.action.trimTrailingWhitespace, editor.action.showHover, editor.action.removeCommentLine, editor.action.addCommentLine, editor.action.openDeclarationToTheSide;
  • ctrl+y: redo;
  • ctrl+m: editor.action.toggleTabFocusMode;
  • ctrl+/: editor.action.commentLine => Use ctrl+; instead;
  • ctrl+p & ctrl+e: workbench.action.quickOpen => Use ctrl+x b instead;
  • ctrl+p: workbench.action.quickOpenNavigateNext => Use ctrl+n instead.