VsCode - Installation and configuration on Windows

Card Puncher Data Processing

About

This page is about the Installation and configuration of VsCode

Steps

Install

Configuration file backup

To backup your configuration file, create a symlink of your user configuration file to a backup-ed location (in this case dropbox)

Example:

SET VSCODE_BACKUP_CONF=C:\Users\gerard\Dropbox\config\VsCode
SET VSCODE_USER_CONF=C:\Users\gerard\AppData\Roaming\Code\User
mkdir %VSCODE_BACKUP_CONF%
mv %VSCODE_USER_CONF%\keybindings.json %VSCODE_BACKUP_CONF%
mv %VSCODE_USER_CONF%\settings.json  %VSCODE_BACKUP_CONF%
mklink %VSCODE_USER_CONF%\keybindings.json  %VSCODE_BACKUP_CONF%\keybindings.json
mklink %VSCODE_USER_CONF%\settings.json  %VSCODE_BACKUP_CONF%\settings.json
symbolic link created for C:\Users\gerard\AppData\Roaming\Code\User\keybindings.json <<===>> C:\Users\gerard\Dropbox\config\VsCode\keybindings.json
symbolic link created for C:\Users\gerard\AppData\Roaming\Code\User\settings.json <<===>> C:\Users\gerard\Dropbox\config\VsCode\settings.json

Terminal

Ref doc

For:

  • Git bash
"terminal.integrated.shell.windows": "c:\\cmder\\vendor\\git-for-windows\\bin\\bash.exe",
  "git.enabled": true,
  "git.path": "c:\\cmder\\vendor\\git-for-windows\\cmd\\git.exe",
  • cmd
"terminal.integrated.shell.windows": "cmd.exe",
  "terminal.integrated.env.windows": {
    "CMDER_ROOT": "c:\\cmder"
  },
  "terminal.integrated.shellArgs.windows": [
    "/k c:\\cmder\\vendor\\init.bat"
  ],

If you got a strange behavior with the arrows for instance, verify your inputrc

Documentation / Reference







Share this page:
Follow us:
Task Runner