Auto Close Tag
Auto Rename Tag
prettier 格式化代码
HTML CSS Support 智能提示CSS类名以及id
HTML Snippets 智能提示HTML标签以及标签含义
JavaScript(ES6) code snippets
open in browser
Path Intellisense
Vetur
解决vetur格式化会把单引号自动格式成双引号的问题
文件——首选项——设置——vetur——Vetur › Format › Default Formatter: HTML改为js-beautify-html保存即可
[
//重复插入选区或当前行,向下插入当前行
{"key":"ctrl+d","command":"editor.action.duplicate","override":true},
//格式化
{"key":"ctrl+b","command":"editor.action.format","override":true},
//加粗(html、md生效),取消strong
{"key":"ctrl+shift+b","command":"editor.action.bold"}
]
egg插件配置,C:\Users\zyw.vscode\extensions\atian25.eggjs-0.3.1\snippets\egg.json
"controller": {
"prefix": "egg controller",
"body": [
" const Controller = require('egg').Controller;",
"",
" class $1Controller extends Controller {",
" $2",
" }",
"",
" module.exports = $1Controller;",
]
},
"service": {
"prefix": "egg service",
"body": [
" const Service = require('egg').Service;",
"",
" class $1Service extends Service {",
" $2",
" }",
"",
" module.exports = $1Service;",
]
}
gitee同步"6c193b592baa782f9354fb0c4ed05391"
网友评论