emmm。给自己的vscode
配置文件留个底。
现在,登录vscode
账号,就可以多台电脑同步你的配置啦,我在windows
和 mac
上已经使用过了。
- 我的有些配置文件需要下载插件才可以使用哦。 常用
vscode
插件请点击: vscode插件推荐
{
"fileheader.customMade": {
"Descripttion": "",
"version": "",
"Author": "yang_ft",
"Date": "Do not edit",
"github": "famensaodiseng",
"LastEditTime": "Do not Edit"
// "fileheader.LastModifiedBy": "杨方涛"
//文件最后修改者
},
"fileheader.cursorMode": {
"name": "",
"test": "test font",
"msg": "",
"param": "",
"return": ""
},
//文件自动保存
"files.autoSave": "afterDelay",
"files.associations": {
"*.art": "html",
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript",
"*.wpy": "vue"
},
"liveServer.settings.donotShowInfoMsg": true,
"window.zoomLevel": -1,
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"editor.fontSize": 32,
// 控制字体大小系列。
"editor.fontFamily": " 'Fira Code','Cascadia Code'",
// 选择字体样式
"editor.fontLigatures": true,
// 是否启用字体连字
"editor.fontWeight": "normal",
// 控制字体粗细。
"editor.formatOnPaste": true,
// 自动格式化粘贴的代码
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.wordWrap": "on",
//是否自动换行
"problems.decorations.enabled": false,
// 在文件和文件夹上显示错误和警告
"git.autofetch": true,
"git.enableSmartCommit": true,
"git.confirmSync": false,
"liveServer.settings.donotVerifyTags": true,
"workbench.startupEditor": "newUntitledFile",
"explorer.confirmDelete": false,
"breadcrumbs.enabled": true,
"update.enableWindowsBackgroundUpdates": true,
"background.customImages": ["D:/FE-tool/vsbg/erciyuan.jpg"],
"background.styles": [
{
"content": "''",
"pointer-events": "none",
"position": "absolute",
"width": "100%",
"height": "100%",
"z-index": "99999",
"background.repeat": "no-repeat",
"background-size": "100%,100%",
"opacity": 0.1
},
{
"content": "''",
"pointer-events": "none",
"position": "absolute",
"width": "100%",
"height": "100%",
"z-index": "99999",
"background.repeat": "no-repeat",
"background-size": "30%,30%",
"opacity": 0.1
}
],
"background.useFront": true,
"background.useDefault": false,
"markdown.preview.fontSize": 16,
"debug.console.fontSize": 16,
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features",
"editor.codeActionsOnSave": {
// 禁止eslint对html进行校验
"source.fixAll.htmllint": true,
// 禁止stylelint对html进行校验
"source.fixAll.stylelint": true,
"source.fixAll.eslint": true // 每次保存的时候将代码按eslint格式进行修复
}
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"git.ignoreMissingGitWarning": true,
"vsicons.dontShowNewVersionMessage": true,
"vetur.validation.template": false,
"vetur.validation.style": false,
"vetur.validation.script": false,
"vetur.experimental.templateInterpolationService": false,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "javascript",
"autoFix": true
},
{
"language": "typescript",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
},
{
"language": "react",
"autoFix": true
}
],
"workbench.settings.enableNaturalLanguageSearch": false,
"workbench.settings.editor": "json",
"terminal.integrated.shell.osx": "/bin/zsh",
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"vue-html": "html",
"vue": "html",
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true,
"editor.tabSize": 2,
// tab几个缩进
"cssrem.rootFontSize": 24, //计算时的基准值
"cssrem.fixedDigits": 3, //取三位有效数字
"cssrem.autoRemovePrefixZero": false, //是否去除0
"eslint.options": {
"extensions": [".js", ".vue", ".jsx", ".tsx"]
},
"editor.codeActionsOnSave": {
// 文件保存时开启eslint自动修复程序
"source.fixAll.eslint": true,
// 文件保存时开启stylelint自动修复程序
"source.fixAll.stylelint": true
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"extensions.autoUpdate": false,
"css.validate": false,
"less.validate": false,
"less.compile": {
//这个配置需要配合esay less插件使用
"compress": true, //是否压缩
"sourceMap": false, //是否生成map文件,有了这个可以在调试台看到less行数
"out": true, // 是否输出css文件,false为不输出
"outExt": ".min.css" // 输出文件的后缀,小程序可以写'wxss'
},
"scss.validate": false,
// 防止编辑器内置linter与插件冲突设置
"stylelint.enable": true,
// 启用stylelint插件
"eslint.enable": true,
// 是否为JavaScript文件开启eslint检测
"eslint.run": "onSave",
// 保存之后进行lint
"eslint.debug": true,
// 是否启用eslint的调试模式
"terminal.integrated.fontSize": 20,
"workbench.colorTheme": "Monokai Pro",
"workbench.iconTheme": "eq-material-theme-icons",
// 终端cmd字号
"powermode.enabled": true,
//是否开启打字特效。
"powermode.presets": "flames",
//火焰特效
//"powermode.presets": "exploding-rift",
//炸裂
// “powermode.presets”: “simple-rift”,
// 爆炸
//"powermode.presets": "particles",
// 粒子
//"powermode.presets": "fireworks",
// 烟花
//"powermode.presets": "magic",
// 魔法
//"powermode.presets": "clippy",
// 回形针
"powermode.comboTimeout": 3,
// 时间间隔
"powermode.enableShake": false,
// 是否抖动
"powermode.backgroundMode": "mask",
"javascript.updateImportsOnFileMove.enabled": "always",
//随字体颜色变化
"editor.formatOnSave": true, // 每次保存自动格式化
"eslint.autoFixOnSave": true,
"prettier.semi": true, // 去掉代码结尾的分号
"prettier.singleQuote": true,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, // 让函数(名)和后面的括号之间加个空格
"vetur.format.defaultFormatter.html": "js-beautify-html", // 格式化.vue中html
"vetur.format.defaultFormatter.js": "vscode-typescript" // 让vue中的js按编辑器自带的ts格式进行格式化
}