1.代码片段
{
"vue2 + js": {
"prefix": "vb2",
"body": [
"<template>",
" <div>$0</div>",
"</template>",
"",
"<script>",
"export default {",
" data () {",
" return {\n",
" }",
" },",
" components: {\n",
" },",
" mounted() {\n",
" },",
" methods: {\n",
" },",
"}",
"",
"</script>",
"<style scoped lang='scss'>",
"</style>"
],
"description": "vue2 快速生成代码块"
},
"Print to console": {
"prefix": "ccc",
"body": [
"console.log($1)"
],
"description": "Log output to console"
}
}
2. 配置文件
{
"editor.lineHeight": 24,
"editor.lineNumbers": "on",
"editor.parameterHints.enabled": true,
"window.zoomLevel": 0,
"editor.fontFamily": "'Source Code Pro','Consolas','Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",
"workbench.colorCustomizations": {
"tab.activeBackground": "#253046",
"activityBar.foreground": "#23f8c8"
},
"editor.detectIndentation": false,
"editor.tabSize": 2,
"emmet.includeLanguages": {
"wxml": "html",
"vue-html": "html",
"wpy": "html"
},
"editor.minimap.enabled": true,
"files.associations": {
"*.wpy": "vue",
"*.vue": "vue",
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript",
".prettierrc": "plaintext"
},
"search.followSymlinks": false,
"explorer.confirmDelete": true,
"workbench.colorTheme": "One Dark Pro",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"vetur.format.styleInitialIndent": true,
"vetur.ignoreProjectWarning": true,
"vetur.format.options.tabSize": 2,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "auto",
"wrap_line_length": 12000,
"semi": false,
"end_with_newline": false
},
"prettier": {
"semi": false,
"singleQuote": true
},
"vscode-typescript": {
"semi": false,
"singleQuote": true
}
},
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"typescript.format.insertSpaceBeforeFunctionParenthesis": false,
"vsicons.dontShowNewVersionMessage": true,
"editor.fontLigatures": false,
"eslint.format.enable": true,
"eslint.validate": ["vue", "javascript", "typescript", "typescriptreact", "html"],
"workbench.startupEditor": "none",
"beautify.options": {},
"editor.fontWeight": "normal",
"workbench.editor.enablePreview": false,
"prettier.semi": false,
"prettier.tabWidth": 2,
"prettier.vueIndentScriptAndStyle": true,
"prettier.useEditorConfig": false,
"editor.codeActionsOnSave": {},
"prettier.printWidth": 240,
"settingsSync.ignoredSettings": [],
"javascript.format.insertSpaceAfterConstructor": true,
"prettier.arrowParens": "avoid",
"better-comments.highlightPlainText": true,
"prettier.jsxSingleQuote": true,
"prettier.useTabs": true,
"js/ts.implicitProjectConfig.experimentalDecorators": true,
"editor.guides.bracketPairs": true,
"editor.fontSize": 16,
"prettier.singleQuote": true,
"vue.inlayHints.optionsWrapper": false,
"typescript.suggestionActions.enabled": false,
"javascript.suggestionActions.enabled": false,
"git.confirmSync": false,
"editor.accessibilitySupport": "off",
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"editor.wordWrap": "on",
"cssrem.rootFontSize": 75,
"cssrem.remHover": false,
"cssrem.wxss": true,
"cssrem.vw": true,
"cssrem.vwHover": false,
"css.enabledLanguages": ["html"]
}