Skip to content

VS Code

Versatile code editor

Shortcuts

  • Comment lines - gc

Useful Extensions

Vim Mode

The standard Vim extension can be really slow, instead I find the VSCode Neovim extension is much faster.

Setup

Comment blocks with gc

Create a init.vim in the following location

  • Unix: ~/.config/nvim/init.vim
  • Windows: ~/AppData/Local/nvim/init.vim
init.vim
xmap gc  <Plug>VSCodeCommentary
nmap gc  <Plug>VSCodeCommentary
omap gc  <Plug>VSCodeCommentary
nmap gcc <Plug>VSCodeCommentaryLine

Last update: August 11, 2023
Created: June 3, 2023