Home
Tags:

VS Code

Hotkeys

General:

  • ctrl + shift + p: open command pallet
  • ctrl + b: toggle sidebar visibility
  • ctrl + shift + e: open explorer
  • ctrl + k, ctrl + w: close all tabs, except for pinned

Editor:

  • ctrl + x: cut line
  • ctrl + c: copy line
  • ctrl + c, ctrl + v: copy line (with nothing selected), paste line
  • ctrl + w: delete word backward
  • ctrl + backspace: delete word backwards
  • ctrl + delete: delete word forwards

Navigation between files and tabs:

  • ctrl + p: go to file
  • ctrl + tab or ctrl + shift + tab: display list of open tabs and open it
  • Ctrl+PgUp or Ctrl+PgDn: Go to next/previous tab

Settings:

  • ctrl + , open settings

Markdown:

alt text https://code.visualstudio.com/docs/getstarted/tips-and-tricks

Hotkeys (dependent on plugins):

  • alt + shift + f: format current file
  • ctrl + . to list spell checking suggestions (if plugin is installed)

Plugins

To do...

Other

Custom labels on opened files

Useful when working on React Next.js.

Display directory name only:

  1. Go to settings
  2. Search custom labels
  3. Add item
  4. Item: **/app/**/page.js