优化编辑器
- Better Comments
Better Comments 你可以使用不同的前缀来让注释显示为不同的颜色。 非常适合快速扫描并发现重要的代码片段。 若使用的话, 建议团队统一规范.
- Bracket Pair Colorizer
你是否经常在项目中出现查找是否缺失括号. 这是一件非常浪费时间的事情. 使用上面这款插件, 它可以帮你用不同的颜色标识括号, 是不是很棒.
- Indent-Rainbow
通过颜色区分, 让你一眼就看出缩进,使得对齐更加具有可读性。
- Document This
- Image preview
- Image preview 图片预览
光标悬浮在图片路径上时,显示图片预览,这样我们在敲代码的时候一下子就能知道有没有引用了正确的图片或图标。
主题
- vscode-perfect-dark-color-theme
版本控制
- GitLens git
- GitLens git版本管理工具
侧边栏添加git版本管理操作按钮,更好的管理git仓库
代码格式化
我们日常敲代码很多命名都是使用英文单词,粗心的小伙伴可能会拼错,这个插件就是单词拼写错时的拯救神器,它可以标志错的单词,还可以提示单词的正确拼法。有了它,就再也不用因为单词拼错找半天的 bug 了
运行代码工具
做前端开发的时候,我们需要打开浏览器进行预览和调试页面。这个插件就可以实现静态、动态页面的实时预览,保存就能看见页面更新,不需要手动去刷新。
-
htmlcss相关
-
Markdown工具
- markdown-table-prettify 表格生成器
- Polacode-2019 代码截图工具
可以把代码保存成美观的图片,主题不同,代码配色方案也不同,也可以自己设置边框颜色、大小、阴影,在教程或者文档中提供代码示例时挺有用的。
小程序相关
参考配置:https://www.yuque.com/docs/share/d5feace7-f10d-4b86-a919-1bf7eacc795b?#
上班摸鱼必备
参考配置:
{
// 编辑器侧边栏
"workbench.sideBar.location": "right",
// 编辑器字体大小
"editor.fontSize": 17,
// 编辑器默认tab空格数
"editor.tabSize": 2,
// 自动格式化
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
// 是否显示缩略图
"editor.minimap.enabled": false,
// 控制目录树缩进
"workbench.tree.indent": 4,
// js 格式化配置
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
// html 格式化配置
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
// json 格式化配置
"[json]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
//!图标主题
"workbench.iconTheme": "material-icon-theme",
//! minapp 配置
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true,
"minapp-vscode.wxmlFormatter": "prettyHtml", //指定格式化工具
//! sync 同步配置
"sync.gist": "d59c918e156f7f0f4c16b1916958fa13",
//! 配置终端类型
"terminal.external.windowsExec": "D:\\develop\\Git\\bin\\bash.exe",
"terminal.integrated.shell.windows": "D:\\develop\\Git\\bin\\bash.exe",
//! shell插件 终端配置
"shellLauncher.shells.windows": [
{
"shell": "C:\\WINDOWS\\System32\\cmd.exe",
"label": "cmd"
},
{
"shell": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"label": "PowerShell"
},
{
"shell": "D:\\develop\\Git\\bin\\bash.exe",
"label": "Git bash"
},
{
"shell": "D:\\develop\\cmder\\Cmder.exe",
"label": "Cmder"
}
],
//! easy less 配置
"less.compile": {
"compress": true, // true => remove surplus whitespace
"sourceMap": false, // true => generate source maps (.css.map files)
"out": true, // false => DON'T output .css files (overridable per-file, see below)
"outExt": ".wxss"
},
//! todo-tree 配置
"todo-tree.regex.regex": "((\\*|//|#|<!--|;|/\\*|^)\\s*($TAGS):|^\\s*- \\[ \\])",
"todo-tree.general.tags": [
"todo",
"tag",
"done",
"note",
"fix"
],
"todo-tree.regex.regexCaseSensitive": false,
"todo-tree.tree.showInExplorer": true,
"todo-tree.highlights.defaultHighlight": {
/* "foreground": "white",
"background": "yellow",
"icon": "check",
"rulerColour": "yellow", */
"type": "line",
/* "iconColour": "yellow" */
},
"todo-tree.highlights.customHighlight": {
"todo": {
"foreground": "#f90",
"rulerColour": "#f90",
"iconColour": "#f90",
},
"done": {
"icon": "issue-closed",
"foreground": "#fdff03",
"rulerColour": "#fdff03",
"iconColour": "#fdff03"
},
"fix": {
"icon": "beaker",
"foreground": "#fb0200",
"rulerColour": "#fb0200",
"iconColour": "#fb0200",
"rulerLane": "full"
},
"tag": {
"icon": "tag",
"foreground": "#67cdfe",
"rulerColour": "#67cdfe",
"iconColour": "#67cdfe",
"rulerLane": "full"
},
"note": {
"foreground": "#02dc00",
"icon": "note",
"rulerColour": "#02dc00",
"iconColour ": "#02dc00"
}
},
}