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等的自动完成代码等一系列的快捷操作
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
白云城资源网 Copyright www.dyhadc.com
暂无“VSCode插件安装完成后的配置详解”评论...
更新日志
2024年05月08日
2024年05月08日
- dnf攻速鞋怎么才算140
- 麦当劳携手Studio Pierrot与Acky Bright推出合作企划
- 《盗贼之海》在抢先体验阶段成为美国销量第二PS5游戏
- 《月姫》中文版实体设定资料集无删减!和日版相同
- ABC唱片-《模拟万岁.示范古典》6N纯银镀膜[WAV+CUE]
- 群星.2002-留芳颂TRIBUTETO…ANITAMUI【正东】【WAV+CUE】
- 刁寒.1998-天长地久【阳光视界】【WAV+CUE】
- 《哈迪斯2》抢先体验现已开启!国区售价108元
- 《堕落之主》基本确定进XGP!微软已签订协议
- 大批韩国游客闻着香味儿涌入中国:想吃中国美食!
- 群星《不老情歌 HiFi典范》[WAV+CUE][700MB]
- 伍佰《试音伍佰 经典曲目》[WAV+CUE][700MB]
- 群星《监听天碟精选 HQCD》[WAV+CUE][575M]
- 张清芳.1996-无人熟识【点将】【WAV+CUE】
- 方伊琪.1990-国语经典怀想曲·无言的结局【ALS】【WAV+CUE】