Skip to content

Instantly share code, notes, and snippets.

@dortamiguel
Created June 14, 2021 22:20
Show Gist options
  • Save dortamiguel/6af1ec23c5cf53f1a62a0ad4758de4ad to your computer and use it in GitHub Desktop.
Save dortamiguel/6af1ec23c5cf53f1a62a0ad4758de4ad to your computer and use it in GitHub Desktop.
vscode setup

extensions

Bracket Pair Colorizer 2
Color Highlight
DotENV
file-icons

<!-- js -->
esbenp.prettier-vscode

<!-- c++ -->
CMake
Clang-Format
C/C++
Shader languages support for VS Code
GLSL Lint
Git Blame

<!-- themes -->
Ayu Adaptive
Sonokai
zoxon.monokai-light

config

{
  // editor
  "[cpp]": {
    "editor.defaultFormatter": "xaver.clang-format",
  },
  "[c]": {
    "editor.defaultFormatter": "xaver.clang-format",
  },
  "breadcrumbs.enabled": true,
  // "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.detectIndentation": true,
  "editor.dragAndDrop": false,
  "editor.fontFamily": "SFMono-Regular",
  "editor.fontSize": 15,
  "editor.formatOnSave": true,
  "editor.lightbulb.enabled": false,
  "editor.minimap.enabled": false,
  "editor.multiCursorModifier": "ctrlCmd",
  "editor.quickSuggestions": false,
  "editor.renderWhitespace": "none",
  "editor.scrollBeyondLastLine": false,
  "editor.showUnused": true,
  "editor.tabSize": 2,
  "editor.wordWrap": "off",
  "explorer.compactFolders": false,
  "explorer.confirmDelete": false,
  "explorer.confirmDragAndDrop": false,
  "explorer.openEditors.visible": 0,
  "extensions.ignoreRecommendations": true,
  "files.associations": {
    "*.plist": "xml"
  },
  "files.autoSave": "onFocusChange",
  "files.insertFinalNewline": true,
  "files.trimTrailingWhitespace": true,
  "git.autofetch": true,
  "git.confirmSync": false,
  "git.enableSmartCommit": true,
  "search.exclude": {
    "**/include": true,
  },
  "telemetry.enableCrashReporter": false,
  "telemetry.enableTelemetry": false,
  "workbench.activityBar.visible": false,
  "workbench.colorTheme": "Sonokai",
  "workbench.editor.untitled.hint": "hidden",
  "workbench.iconTheme": "file-icons",
  "workbench.preferredDarkColorTheme": "Sonokai",
  "workbench.preferredLightColorTheme": "Monokai Light Theme",
  "workbench.sideBar.location": "right",
  "workbench.startupEditor": "newUntitledFile",
  "workbench.tips.enabled": false,
  "window.autoDetectColorScheme": true,
  "window.restoreWindows": "all",
  "window.title": "${activeEditorMedium}${separator}${rootName}",
  "window.zoomLevel": 1,
  // languages
  "javascript.suggestionActions.enabled": false,
  "javascript.suggest.autoImports": false,
  "javascript.updateImportsOnFileMove.enabled": "never",
  "typescript.suggestionActions.enabled": false,
  "typescript.suggest.autoImports": false,
  "typescript.updateImportsOnFileMove.enabled": "never",
  // extensions
  "bracket-pair-colorizer-2.colors": [
    "#bf5af2",
    "#0a84ff",
    "#ff9f0a",
  ],
  "C_Cpp.default.cppStandard": "c++20",
  "C_Cpp.default.includePath": [
    "${workspaceFolder}/include",
  ],
  // "gitblame.statusBarMessageFormat": "${author.name} ( ${time.ago} )",
  // "prettier.requireConfig": true,
  "workbench.colorCustomizations": {
    "[Ayu Mojave]": {
      "list.hoverBackground": "#434347",
      "list.inactiveSelectionBackground": "#434347",
    }
  },
}

keybindings - Open keyboard shortcuts (JSON)

[
  {
    "key": "cmd+r",
    "command": "workbench.action.reloadWindow"
  },
  {
    "key": "alt+s",
    "command": "git.stageAll"
  },
  {
    "key": "cmd+g",
    "command": "workbench.view.scm"
  },
  {
    "key": "cmd+e",
    "command": "workbench.view.explorer"
  },
  {
    "key": "cmd+o",
    "command": "C_Cpp.SwitchHeaderSource",
    "when": "editorTextFocus && editorLangId == 'cpp'"
  },
  {
    "key": "cmd+o",
    "command": "C_Cpp.SwitchHeaderSource",
    "when": "editorTextFocus && editorLangId == 'c'"
  },
  {
    "key": "cmd+1",
    "command": "workbench.action.openEditorAtIndex1"
  },
  {
    "key": "ctrl+1",
    "command": "-workbench.action.openEditorAtIndex1"
  },
  {
    "key": "cmd+2",
    "command": "workbench.action.openEditorAtIndex2"
  },
  {
    "key": "ctrl+2",
    "command": "-workbench.action.openEditorAtIndex2"
  },
  {
    "key": "cmd+3",
    "command": "workbench.action.openEditorAtIndex3"
  },
  {
    "key": "ctrl+3",
    "command": "-workbench.action.openEditorAtIndex3"
  },
  {
    "key": "cmd+4",
    "command": "workbench.action.openEditorAtIndex4"
  },
  {
    "key": "ctrl+4",
    "command": "-workbench.action.openEditorAtIndex4"
  },
  {
    "key": "cmd+5",
    "command": "workbench.action.openEditorAtIndex5"
  },
  {
    "key": "ctrl+5",
    "command": "-workbench.action.openEditorAtIndex5"
  },
  {
    "key": "cmd+6",
    "command": "workbench.action.openEditorAtIndex6"
  },
  {
    "key": "ctrl+6",
    "command": "-workbench.action.openEditorAtIndex6"
  },
  {
    "key": "cmd+7",
    "command": "workbench.action.openEditorAtIndex7"
  },
  {
    "key": "ctrl+7",
    "command": "-workbench.action.openEditorAtIndex7"
  },
  {
    "key": "cmd+8",
    "command": "workbench.action.openEditorAtIndex8"
  },
  {
    "key": "ctrl+8",
    "command": "-workbench.action.openEditorAtIndex8"
  },
  {
    "key": "cmd+9",
    "command": "workbench.action.openEditorAtIndex9"
  },
  {
    "key": "ctrl+9",
    "command": "-workbench.action.openEditorAtIndex9"
  },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment