Skip to content

Instantly share code, notes, and snippets.

@anupkrbid
Last active October 10, 2023 16:31
Show Gist options
  • Save anupkrbid/33546b23a6107acd1605188be988d688 to your computer and use it in GitHub Desktop.
Save anupkrbid/33546b23a6107acd1605188be988d688 to your computer and use it in GitHub Desktop.
VS Code Configuration Cheetsheet.
Up for evaluation
{
"liveServer.settings.donotShowInfoMsg": true,
"prettier.singleQuote": true,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[python]": {
"editor.defaultFormatter": "ms-python.python"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontFamily": "Monaco, Consolas, 'Courier New', monospace",
"editor.tabSize": 2,
"editor.wordWrap": "off",
"editor.formatOnSave": true,
"window.zoomLevel": 0,
"files.autoSave": "onFocusChange",
"typescript.updateImportsOnFileMove.enabled": "always"
}

VS Code Configurations

User Settings

{
     "git.path": "C:\\WINDOWS\\System32\\bash.exe",
    // "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", // using git-bash for windows
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\bash.exe", // using ubuntu sub system terminal
    "editor.tabSize": 2,
    "files.autoSave": "onFocusChange",
    "editor.fontFamily": "Monaco, Consolas, 'Lucida Console', monospace", // requires to have 'Monaco' font present in system
    // "editor.fontFamily": "Consolas, 'Courier New', monospace",
    "editor.wordWrap": "off",
    "window.zoomLevel": 0,
    "prettier.singleQuote": true,
    "editor.formatOnSave": true,
    "typescript.updateImportsOnFileMove.enabled": "always"
}

Keyboard Shortcuts

ALT + ArrowUp/ArrowDown => "Move Line Up or Down"
Ctrl + `                => "Open Terminal in Editor"
Ctrl + Shift + `        => "Open New Terminal in Editor"
Ctrl + D                => "Select Similar Focused Texts"
Ctrl + .                => "Quick Fix (Auto Import Missing Imports)"
Ctrl + F                => "Find in File"
Ctrl + Shift + F        => "Find in Another File"
Ctrl + ,                => "Open VS Code User Settings"
Ctrl/Shift + Alt + F    => "Format Document in Ubuntu/Windows"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment