vscode

basic

[!TIP|label:settings.json]

OSLOCATION

windows

%APPDATA%\Code\User\settings.json

linux

$HOME/.config/Code/User/settings.json

osx

$HOME/Library/Application Support/Code/User/settings.json

config

[!NOTE|label:references:]

  • proxy

    {
        "http.proxy": "http://user:pass@my.proxy.address:8080",
        "http.proxyStrictSSL": false,
    }

font style

[!NOTE|label:references:]

plugins

[!NOTE]

  • update github token

    [!NOTE|label:references:]

    1. generate new token for gist

    2. vscode -> ⌘ + ⇧ + p -> >Sync: Advanced Options

    1. >Sync: Open Settings

    1. paste new token

[!NOTE|label:references:]

  • install

    • mac

      $ defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false              # For VS Code
      $ defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false      # For VS Code Insider
      $ defaults write com.visualstudio.code.oss ApplePressAndHoldEnabled -bool false         # For VS Codium
      $ defaults write com.microsoft.VSCodeExploration ApplePressAndHoldEnabled -bool false   # For VS Codium Exploration users
      $ defaults delete -g ApplePressAndHoldEnabled                                           # If necessary, reset global default
  • configure

    // vim
    "vim.changeWordIncludesWhitespace": true,
    "vim.cursorStylePerMode.insert": "line",
    "vim.cursorStylePerMode.normal": "underline",
    "vim.cursorStylePerMode.visual": "underline",
    "vim.cursorStylePerMode.visualblock": "line",
    "vim.cursorStylePerMode.visualline": "underline",
    "vim.cursorStylePerMode.replace": "underline",
    "vim.useSystemClipboard": true,
    "vim.sneakUseIgnorecaseAndSmartcase": true,
    "vim.easymotion": true,
    "vim.incsearch": true,
    "vim.hlsearch": true,

shortcut

[!NOTE|label:references:]

PLATFORMMODIFIERS

macOS

Ctrl+, Shift+, Alt+, Cmd+

Windows

Ctrl+, Shift+, Alt+, Win+

Linux

Ctrl+, Shift+, Alt+, Meta+

SHORTCUTKEYDESCRIPTION

shift + cmd + p

⇧ + ⌘ + p

open command palette

cmd + p

⌘ + p

go to file

shift + ctrl + `

⇧ + ⌘ + `

new terminal

ctrl + b

⌃ + b

toggle sidebar visibility

ctrl + r

⌃ + r

open recently

cmd + j

⌘ + j

toggle terminal panel

cmd + ,

⌘ + ,

open settings

shift + cmd + e

⇧ + ⌘ + e

open explorer view

shift + cmd + f

⇧ + ⌘ + f

open search view

shift + cmd + v

⇧ + ⌘ + v

open markdown preview

cmd + k, v

⌘ + k, v

open markdown preview to side

shift + cmd + g

⇧ + ⌘ + g

open source control view

shift + cmd + x

⇧ + ⌘ + x

open extensions view

shift + cmd + o

⇧ + ⌘ + o

go to symbol

shift + cmd + m

⇧ + ⌘ + m

show problem panel

shift + cmd + y

⇧ + ⌘ + y

show debug console panel

shift + cmd + u

⇧ + ⌘ + u

show output panel

ctrl + ^

⌃ + ^

show terminal panel

cmd + k + 0 / cmd + k + j

⌘ + k + 0 / ⌘ + k + j

fold/unfold all methods

alt + cmd + o

⌥ + ⌘ + o

connect to ...

alt + cmd + r

⌥ + ⌘ + r

reveal in finder

alt + cmd + c

⌥ + ⌘ + c

copy path

Last updated