Skip to main content

我的 Visual Studio Code 配置

· 2 min read
Alan

VSCode 配置:

.vscode/settings.json
{
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[javascriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[markdown]": {
"editor.quickSuggestions": {
"comments": "on",
"other": "on",
"strings": "on"
},
"editor.wordWrap": "on"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.stickyScroll.enabled": true,
"editor.formatOnSave": false,
"editor.inlineSuggest.enabled": true,
"editor.inlineSuggest.showToolbar": "always",
"editor.lineNumbers": "relative",
"editor.minimap.autohide": true,
"editor.smoothScrolling": true,
"editor.suggestSelection": "first",
"editor.tabSize": 2,
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.unicodeHighlight.invisibleCharacters": false,
"emmet.triggerExpansionOnTab": true,
"explorer.autoReveal": "focusNoScroll",
"explorer.confirmDelete": false,
"extensions.autoCheckUpdates": false,
"extensions.autoUpdate": false,
"extensions.ignoreRecommendations": true,
"files.associations": {
"*.mdx": "markdown",
"*.wxml": "vue-html"
},
"files.encoding": "utf8",
"files.eol": "\n",
"git.openRepositoryInParentFolders": "always",
"json.maxItemsComputed": 500,
"todohighlight.maxFilesForSearch": 5120,
"update.mode": "manual",
"vim.autoSwitchInputMethod.defaultIM": "xkb:us::eng",
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/ibus engine",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/ibus engine {im}",
"vim.leader": " ",
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"<Leader>",
"p"
],
"commands": [
"workbench.action.showCommands"
]
},
{
"before": [
"<Leader>",
"k"
],
"commands": [
"editor.action.showHover"
]
},
{
"before": [
"<Leader>",
"m"
],
"commands": [
"workbench.action.toggleZenMode"
]
}
],
"vim.smartRelativeLine": true,
"vim.useCtrlKeys": false,
"vim.useSystemClipboard": false,
"vim.visualModeKeyBindings": [
{
"before": [
"J"
],
"commands": [
"editor.action.moveLinesDownAction"
]
},
{
"before": [
"K"
],
"commands": [
"editor.action.moveLinesUpAction"
]
}
],
"window.closeWhenEmpty": true,
"window.restoreWindows": "none",
"window.titleBarStyle": "custom",
"window.zoomLevel": 1,
"workbench.activityBar.location": "top",
"workbench.list.smoothScrolling": true,
"workbench.startupEditor": "welcomePage",
"zenMode.centerLayout": false,
"zenMode.showTabs": "multiple",
"zenMode.fullScreen": true,
"zenMode.hideLineNumbers": false,
"zenMode.hideStatusBar": false,
"remote.autoForwardPorts": false
}