Skip to content

Instantly share code, notes, and snippets.

@wowiwj
Last active October 15, 2019 10:11
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save wowiwj/7cb83c1938f7cf4cec67a0143be84d55 to your computer and use it in GitHub Desktop.
Save wowiwj/7cb83c1938f7cf4cec67a0143be84d55 to your computer and use it in GitHub Desktop.
VSCode个人配置
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:vue/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn"
}
}
// 将键绑定放入此文件中以覆盖默认值
[
{
"key": "cmd+r",
"command": "workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+r",
"command": "workbench.action.showAllSymbols"
},
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "alt+enter",
"command": "editor.action.showContextMenu",
"when": "editorTextFocus"
},
{
"key": "shift+f10",
"command": "-editor.action.showContextMenu",
"when": "editorTextFocus"
}
]
{
"Public function": {
"prefix": "pubf",
"body": [
"public function $1($2)",
"{",
"\t$0",
"}"
],
"description": "Public function"
},
"Private function": {
"prefix": "prif",
"body": [
"private function $1($2)",
"{",
"\t$0",
"}"
],
"description": "Private function"
},
"Protected function": {
"prefix": "prof",
"body": [
"protected function $1($2)",
"{",
"\t$0",
"}"
],
"description": "Protected function"
}
}
{
"editor.fontSize": 15,
"workbench.colorTheme": "Material Theme",
"workbench.statusBar.visible": false,
"explorer.openEditors.visible": 0,
"workbench.activityBar.visible": false,
"editor.minimap.enabled": false,
"terminal.integrated.fontSize": 14,
"terminal.integrated.fontFamily": "Menlo, Monaco, 'Courier New', monospace",
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 3000,
// File extensions to be parsed by the Typescript parser
"importCost.typescriptExtensions": [
"\\.vue$"
],
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"vue-html"
],
"workbench.iconTheme": "vscode-icons",
"editor.tabCompletion": true,
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html"
},
"emmet.showExpandedAbbreviation": "always",
"emmet.triggerExpansionOnTab": true
}
@rovast
Copy link

rovast commented Apr 16, 2018

👍 赞,很实用的配置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment