---
# System prepended metadata

title: vscode
tags: [setting, vscode, init, tsmc]

---

# vscode

## keyboard bind

```json
// My Modify
{ "key": "alt+j", "command": "workbench.action.terminal.focus"},
    { "key": "alt+j", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"},
    { "key": "tab", "command": "selectNextQuickFix", "when": "editorFocus && quickFixWidgetVisible" },
    { "key": "shift+tab", "command": "selectPrevQuickFix", "when": "editorFocus && quickFixWidgetVisible" },
    { "key": "tab", "command": "selectNextSuggestion", "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible" },
    { "key": "shift+tab", "command": "selectPrevSuggestion", "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible" },
    { "key": "ctrl+k", "command": "workbench.action.terminal.focusPrevious", "when": "terminalFocus" },
    { "key": "cmd+h", "command": "workbench.action.toggleMaximizedPanel"},
```

```json
{
  "liveServer.settings.AdvanceCustomBrowserCmdLine": "safari",
  "workbench.iconTheme": "material-icon-theme",
  "python.pythonPath": "/usr/bin/python3",
  // "python.pythonPath": "/usr/bin/python3",
  "workbench.editor.tabSizing": "fit",
  // add following to enable synthwave84
  "vscode_custom_css.imports": [
    "file:///Users/leowang/.vscode/extensions/robbowen.synthwave-vscode-0.1.10/synthwave84.css"
  ],
  "terminal.integrated.profiles.osx": {
    "bash": {
      "path": "bash",
      "args": ["-l"],
      "icon": "terminal-bash"
    },
    "zsh": {
      "path": "zsh",
      "args": ["-l"]
    },
    "fish": {
      "path": "/usr/local/bin/fish",
      "args": ["-l"]
    },
    "tmux": {
      "path": "tmux",
      "icon": "terminal-tmux"
    },
    "pwsh": {
      "path": "pwsh",
      "icon": "terminal-powershell"
    }
  },
  "python.linting.pylintArgs": [
    // "--generated-members=torch.*",
  ],
  "editor.fontSize": 16,
  "editor.fontLigatures": true,
  "editor.fontFamily": "Fira Code", // https://github.com/tonsky/FiraCode
  "editor.scrollBeyondLastLine": true,
  "editor.formatOnPaste": true,
  "editor.multiCursorModifier": "ctrlCmd",
  "editor.snippetSuggestions": "top",
  "editor.cursorSurroundingLines": 3,
  "editor.cursorBlinking": "smooth",
  "editor.comments.insertSpace": true,
  // When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected based on the file contents.
  "editor.detectIndentation": true,
  // "editor.detectIndentation": false,
  // Other
  "sync.gist": "08f2532e0c4dbd23884123909a66bc02",
  "workbench.startupEditor": "newUntitledFile",
  // "C_Cpp.updateChannel": "Insiders",
  "code-runner.runInTerminal": true,
  "explorer.confirmDragAndDrop": false,
  "vscode_vibrancy.opacity": -3,
  "code-runner.executorMap": {
    "cpp": "cd $dir && g++ -std=c++14 $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt && rm $dir$fileNameWithoutExt",
    "python": "cd $dir && python3 $fileName"
  },
  "background.enabled": true,
  "background.useDefault": false,
  "background.customImages": [
    "https://i.imgur.com/xCe7WwU.gif",
    "https://64.media.tumblr.com/d3893fc5906f166dfc6b54bcb808f6ba/81dc912cde9331b1-98/s540x810/97f9319f598d427dbab7c6d4db4a623b82e5d66d.gifv",
    "https://64.media.tumblr.com/9521b5e88c3205af6f38f98ac98f7668/81dc912cde9331b1-61/s540x810/a78f5e5072a18703dae14d2c929be5de5192be67.gifv",
    "https://64.media.tumblr.com/810c079a61fbc64b04e7e77aa3ed47aa/81dc912cde9331b1-b6/s540x810/3f48fcd826455dda941d9a527f6bfb8b2b286836.gifv",
    "https://64.media.tumblr.com/6579b60f6e46e7f6196a60ebc386fc88/81dc912cde9331b1-25/s540x810/a143adbc5fe899ff53f7e1b870c2c9b365ae5550.gifv",
    "https://i.imgur.com/QLpLAfU.gif",
    "https://64.media.tumblr.com/095318fd7179ebc2ae7630f5f9b43b08/81dc912cde9331b1-7d/s540x810/741e71abc947d54f5879fe9571b0af689a2c883b.gifv",
    "https://i.imgur.com/mLjAJvK.png",
    "https://i.imgur.com/fV7gX8n.png",
    "https://i.imgur.com/UgKQyq7.png",
    "https://i.imgur.com/cSYbiYy.png"
    // "https://i.imgur.com/CpsZbBZ.png",
    // "https://i.imgur.com/PrZucVR.png",
    // "https://i.imgur.com/0aZvO2q.gif",
    // "https://img.moegirl.org/common/b/b9/白上吹雪挂件.png",
    // "https://user-images.githubusercontent.com/24371189/47023104-85336080-d191-11e8-957f-b4ac3f8a24c1.png"
  ],
  "background.style": {
    "content": "''",
    "pointer-events": "none",
    "background-position": "right",
    "position": "absolute",
    "right": "0",
    "bottom": "0",
    "width": "30%",
    "height": "30%",
    // "z-index": "9999",
    "background-size": "contain",
    "opacity": 0.8
  },
  "kite.showWelcomeNotificationOnStartup": false,
  "todo-tree.tree.showScanModeButton": false,
  "vim.leader": ",",
  "vim.normalModeKeyBindings": [
    {
      "before": ["<C-h>"],
      "after": ["<C-w>", "h"]
    },
    {
      "before": ["<C-j>"],
      "after": ["<C-w>", "j"]
    },
    {
      "before": ["<C-k>"],
      "after": ["<C-w>", "k"]
    },
    {
      "before": ["<C-l>"],
      "after": ["<C-w>", "l"]
    },
    {
      "before": ["<C-h>"],
      "after": ["<C-w>", "h"]
    },
    {
      "before": ["<leader>", "b", "d"],
      "after": ["<C-w>", "h"]
    },
    {
      "before": ["<leader>", "b", "d"],
      "commands": [":Bclose", ":tabclose", "gT"]
    },
    {
      "before": ["<leader>", "b", "a"],
      "commands": [":bufdo bd"]
    },
    {
      "before": ["w"],
      "commands": ["workbench.action.nextEditorInGroup"]
    },
    {
      "before": ["q"],
      "commands": ["workbench.action.previousEditorInGroup"]
    }
  ],
  "editor.lineNumbers": "relative",
  "workbench.editor.enablePreview": false,
  "explorer.confirmDelete": false,
  "explorer.autoReveal": false,
  "editor.formatOnSave": true,
  "editor.formatOnType": true,
  "liveServer.settings.donotVerifyTags": true,
  "liveServer.settings.donotShowInfoMsg": true,
  "editor.largeFileOptimizations": false,
  "json.maxItemsComputed": 50000,
  "[json]": {
    "editor.defaultFormatter": "remimarsal.prettier-now"
  },
  "python.linting.pylintEnabled": true,
  "python.linting.enabled": true,
  "terminal.integrated.inheritEnv": false,
  "todo-tree.highlights.customHighlight": {
    "BUG": {
      "icon": "bug"
    },
    "FIXME": {
      "icon": "flame"
    },
    "CHANGE": {
      "icon": "check"
    }
  },
  "jupyter.jupyterServerType": "remote",
  "jupyter.askForKernelRestart": false,
  "jupyter.sendSelectionToInteractiveWindow": false,
  "files.autoSave": "off",
  "python.languageServer": "Pylance",
  "workbench.editorAssociations": {
    "*.ipynb": "jupyter-notebook"
  },
  "git.autofetch": true,
  "gitlens.gitCommands.skipConfirmations": [
    "fetch:command",
    "stash-push:command",
    "switch:command",
    "branch-create:command"
  ],
  "python.showStartPage": false,
  "todo-tree.general.tags": [
    "BUG",
    "HACK",
    "FIXME",
    "TODO",
    "XXX",
    "[ ]",
    "[x]"
  ],
  "todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)",
  "google.drive.alertMissingCredentials": false,
  "terminal.integrated.allowWorkspaceConfiguration": true,
  "editor.cursorStyle": "line",
  "editor.insertSpaces": false,
  "editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
  "editor.wordWrap": "off",
  "workbench.tree.indent": 4,
  "python.defaultInterpreterPath": "/opt/homebrew/bin/python3",
  "security.workspace.trust.untrustedFiles": "open",
  "notebook.cellToolbarLocation": {
    "default": "right",
    "jupyter-notebook": "right"
  },
  "mssql.connections": [
    {
      "server": "{{put-server-name-here}}",
      "database": "{{put-database-name-here}}",
      "user": "{{put-username-here}}",
      "password": "{{put-password-here}}"
    }
  ],
  "[python]": {
    "editor.defaultFormatter": "remimarsal.prettier-now"
  },
  "vscode-edge-devtools.mirrorEdits": true,
  "workbench.editor.untitled.hint": "hidden",
  "editor.inlineSuggest.enabled": true,
  "github.copilot.enable": {
    "*": false,
    "yaml": false,
    "plaintext": true,
    "markdown": false,
    "javascript": false
  },
  "remote.SSH.remotePlatform": {
    "pi": "linux",
    "lab": "linux"
  },
  "terminal.integrated.gpuAcceleration": "off",
  "editor.accessibilitySupport": "off",
  "bracketPairColorizer.depreciation-notice": false,
  "workbench.colorTheme": "SynthWave '84",
  "editor.linkedEditing": true,
  "remote.SSH.serverPickPortsFromRange": {
    "opi": "4000-5000"
  },
  "editor.rename.enablePreview": false,
  "leetcode.workspaceFolder": "/Users/leowang/code/algorithm/leetCodeCpp",
  "leetcode.hint.setDefaultLanguage": false,
  "leetcode.hint.commentDescription": false,
  "leetcode.hint.configWebviewMarkdown": false,
  "cmake.configureOnOpen": false,
  // "cmake.configureOnOpen": false,
  "cmake.cmakePath": "cmake",
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "files.exclude": {
    "**/.classpath": true,
    "**/.project": true,
    "**/.settings": true,
    "**/.factorypath": true
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "notebook.output.textLineLimit": 50,
  "indentRainbow.ignoreLinePatterns": [
    "python",
    "markdown",
    "/[ \t]* [*]/g",
    "/[ \t]+[/]{2}/g"
],
  "editor.tabSize": 2,
  "emmet.triggerExpansionOnTab": true,
  "emmet.includeLanguages": {
    "javascript": "javascriptreact"
  },
  "ctlorem.includeLanguages": "typescriptreact",
  "search.followSymlinks": false,
  "terminal.integrated.profiles.windows": {
    "PowerShell": {
      "source": "PowerShell",
      "icon": "terminal-powershell"
    },
    "Command Prompt": {
      "path": [
        "${env:windir}\\Sysnative\\cmd.exe",
        "${env:windir}\\System32\\cmd.exe"
      ],
      "args": [],
      "icon": "terminal-cmd"
    },
    "Git Bash": {
      "source": "Git Bash"
    },
    "Ubuntu (WSL)": {
      "path": "C:\\WINDOWS\\System32\\wsl.exe",
      "args": ["-d", "Ubuntu"]
    }
  },
  "terminal.integrated.defaultProfile.windows": "Ubuntu (WSL)"
}
```


###### tags: `tsmc`, `vscode`, `init`, `setting`