VSCode插件安装
Posted iszhangheng
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VSCode插件安装相关的知识,希望对你有一定的参考价值。
一,Java开发插件
- Language support for Java ? for Visual Studio Code
- Java Extension Pack
- Debugger for Java
- Java Test Runner
二,Vue前端开发
- Auto Close Tag
- Auto Rename Tag
- Beautify
- ESLint
- Git History
- GitLens — Git supercharged
- html CSS Support
- Live Server
- Prettier - Code formatter
- Vetur
- Vue 2 Snippets
- Vue Peek
- VueHelper
- vscode-element-helper
三,快捷键插件
- Eclipse Keymap for Visual Studio Code. (eclipse快捷键)
- Lombok Annotations Support for VS Code. (简化POJO, 很惊喜)
四,常用设置
1,搜索文件是忽略target文件夹
"search.exclude": { "**/node_modules": true, "**/bower_components": true, "**/target": true, "**/logs": true }
2,代码编写规则
{ "workbench.startupEditor": "newUntitledFile", "editor.multiCursorModifier": "ctrlCmd", "editor.fontSize": 16, "java.errors.incompleteClasspath.severity": "ignore", "explorer.confirmDelete": false, "git.autofetch": true, "editor.wordWrap": "on", "java.configuration.maven.userSettings": "D:\Java\apache-maven-3.5.4\conf", "editor.quickSuggestions": { "strings": true }, "workbench.colorTheme": "Visual Studio Light", "element-helper.version": "2.4", // eslint "editor.tabSize": 2, "files.associations": { "*.vue": "vue" }, "eslint.autoFixOnSave": true, "eslint.options": { "plugins": ["vue"], "extensions": [ ".js", ".vue" ] }, "eslint.validate": [ "javascript", "javascriptreact", "vue", "vue-html", { "language": "vue", "autoFix": true } ], "eslint.run": "onSave", "emmet.syntaxProfiles": { "javascript": "jsx", "vue": "html", "vue-html": "html" }, "prettier.singleQuote": true, "vetur.format.defaultFormatter.html": "js-beautify-html", "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "wrap_attributes": "force" // 可以换成上面任意一种value } }, }
3,取消单击打开文件覆盖导航栏:
-
- 文件->首选项->设置, 添加
"workbench.editor.enablePreview": false,
- 文件->首选项->设置, 添加
五,常用快捷键
CTRL + P : 打开文件搜索
CTRL + SHIFT + N:打开新窗口
CTRL + SHIFT + p:打开指令栏(Clone GIT项目等)
CTRL + F:查找替换
CTRL + SHIFT + F:格式化代码
以上是关于VSCode插件安装的主要内容,如果未能解决你的问题,请参考以下文章
为啥vscode中.js文件没有片段提示,但是.html文件有提示?