Skip to content

Instantly share code, notes, and snippets.

@khanghh
Last active May 5, 2021 06:30
Show Gist options
  • Save khanghh/59b005b2a9d2b109cda47e6df9eec2b5 to your computer and use it in GitHub Desktop.
Save khanghh/59b005b2a9d2b109cda47e6df9eec2b5 to your computer and use it in GitHub Desktop.
my vscode settings
{
// =========== watcher exclueded file =============
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true
},
// ================ vim settings =================
"vim.useCtrlKeys": false,
"keyboard.dispatch": "keyCode",
"vim.surround": true,
// "editor.mouseWheelZoom": true,
// ===================== editor ==================
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.suggestSelection": "first",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"breadcrumbs.enabled": true,
"window.titleBarStyle": "custom",
"workbench.activityBar.visible": true,
"workbench.editor.enablePreview": false,
"editor.formatOnSave": false,
"explorer.autoReveal": true,
// ===================== vetur ====================
"vetur.format.defaultFormatterOptions": {
"prettyhtml": {
"printWidth": 120,
"useTabs": false,
"wrapAttributes": false,
"usePrettier": true
},
"prettier": {
"printWidth": 80,
"useTabs": false,
"semi": false,
"singleQuote": true,
"paser": "babylon",
"bracketSpacing": false
}
},
"vetur.format.defaultFormatter.html": "prettier",
"vetur.format.defaultFormatter.css": "prettier",
"vetur.format.defaultFormatter.postcss": "none",
"vetur.format.defaultFormatter.scss": "prettier",
"vetur.format.defaultFormatter.less": "none",
"vetur.format.defaultFormatter.stylus": "stylus-supremacy",
"vetur.format.defaultFormatter.js": "prettier-eslint",
"vetur.format.defaultFormatter.ts": "none",
// These two settings are inherited by all formatters:
"vetur.format.options.tabSize": 2,
"vetur.format.options.useTabs": false,
// ========================= prettier ================
"prettier.useTabs": false,
"prettier.semi": false,
"prettier.singleQuote": true,
"prettier.tabWidth": 2,
"javascript.updateImportsOnFileMove.enabled": "never",
"http.proxyAuthorization": null,
"eslint.format.enable": true,
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"editor.dragAndDrop": false,
"explorer.enableDragAndDrop": false,
"[cpp]": {
"editor.tabSize": 4
},
"cmake.configureOnOpen": false,
// ========================== File Header ============================
"fileHeaderComment.parameter":{
"*":{
"commentbegin": "/*",
"commentprefix": " *",
"commentend": " */",
"author": "khanghh",
"company": "VNG Coporation"
}
},
"fileHeaderComment.template":{
"*":[
"${commentbegin}",
"${commentprefix} Created on ${year}/${month}/${day} by ${author}",
"${commentprefix}",
"${commentprefix} Copyright (c) ${year} ${company}",
"${commentend}"
]
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
"java.project.importOnFirstTimeStartup": "automatic",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"java.refactor.renameFromFileExplorer": "autoApply",
"liveServer.settings.donotShowInfoMsg": true,
"java.home": "/usr/local/Cellar/openjdk/15.0.2/libexec/openjdk.jdk/Contents/Home",
"java.configuration.runtimes": [
],
"redhat.telemetry.enabled": true,
"go.toolsManagement.autoUpdate": true,
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment