VSCode插件安装完成后的配置详解
导读:收集整理的这篇文章主要介绍了VSCode插件安装完成后的配置详解,觉得挺不错的,现在分享给大家,也给大家做个参考。 VSCode插件安装完成后,有些插件如果你想要完整的使用其中的功能得在...
收集整理的这篇文章主要介绍了VSCode插件安装完成后的配置详解,觉得挺不错的,现在分享给大家,也给大家做个参考。 VSCode插件安装完成后,有些插件如果你想要完整的使用其中的功能得在settings.json中就行配置,接下来是我常用的一些配置
{ "workbench.iconTheme": "vscode-icons", "window.zooMLevel": 0, "files.autoSave": "off", "eslint.runtime": "", "edITor.codeActionsOnSave": { "source.fixAll.eslint": true } , "eslint.codeAction.disableRuleComment": { } , "eslint.codeAction.showDocumentation": { } , "editor.formatOnSave": true, "vetur.COMpletion.scaffoldSnipPEtSources": { } , "vetur.format.defaultFormatter.html": "PRettier", // 是否允许自定义的snippet片段提示 "editor.snippetSuggestions": "top", "editor.fontSize": 14, "editor.fontWeight": "400", "editor.formatOnType": true, "guides.enabled": false, "editor.tabSize": 2, "git.confirmSync": false, "editor.renderWhitespace": "boundary", "editor.cursorBlinking": "smooth", "editor.minimap.enabled": true, "editor.minimap.renderCharacters": false, "window.title": "${ dirty} ${ activeEditorMedium} ${ separator} ${ rootName} ", "editor.codeLens": true, // 配置文件关联,以便启用对应的提示 "files.associations": { "*.vue": "vue", "*.wxss": "css", "*.cjson": "jsonc", "*.wxs": "javascript" } , // 配置emmet是否启用tab展开缩写 "emmet.triggerExpansionOnTab": true, // 配置emmet对文件类型的支持 "emmet.syntaxProfiles": { "javascript": "jsx", "vue": "html", "vue-html": "html" } , // 是否开启eslint检测 "eslint.enable": true, // eslint配置文件 "eslint.options": { "extensions": [ ".js", ".vue" ] } , "git.autofetch": true, "workbench.colorTheme": "One Dark Pro", "emmet.includeLanguages": { "wXMl": "html" } , "minapp-vscode.disableAutoconfig": true,}
这个配置能够直接让你ctrl+/注释代码,不管是vue的还是html的;也能ctrl+s时使用eslint格式化代码;输入for,foreach,map等的自动完成代码等一系列的快捷操作
到此这篇关于VSCode插件安装完成后的配置详解的文章就介绍到这了,更多相关VSCode插件安装后配置内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!
- VSCode的使用配置以及VSCode插件的安装教程详解
- VSCode插件安装完成后的配置(常用配置)
- Ubuntu 20.04 下安装配置 VScode 的 C/C++ 开发环境(图文教程)
- go本地环境配置及vscode go插件安装的详细教程
- 在Ubuntu中安装VSCode并配置C/C++开发环境的方法步骤
- 完全卸载VSCode--解决卸载重新安装后还有原来配置的问题(图解)
- Windows下安装VScode 并使用及中文配置方法
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: VSCode插件安装完成后的配置详解
本文地址: https://pptw.com/jishu/608916.html