在使用 vscode
编写 .vue
代码,在点击的保存之后,函数名和括号之间没有空格.
![](https://img.haomeiwen.com/i2701794/3243dd538730c633.png)
打开 vscode
顶部菜单选项
![](https://img.haomeiwen.com/i2701794/cf3ec1a25824cf38.png)
在里面键入:
{
"vetur.format.defaultFormatter.js": "vscode-typescript",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
}
![](https://img.haomeiwen.com/i2701794/b527a9107654b70e.png)
然后你再保存代码时,函数名和括号之间就有空格了.
![](https://img.haomeiwen.com/i2701794/362f5d25687a619c.png)
在使用 vscode
编写 .vue
代码,在点击的保存之后,函数名和括号之间没有空格.
打开 vscode
顶部菜单选项
在里面键入:
{
"vetur.format.defaultFormatter.js": "vscode-typescript",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
}
然后你再保存代码时,函数名和括号之间就有空格了.
本文标题:vscode 在保存 .vue 模板代码时在函数和括号之间添加空
本文链接:https://www.haomeiwen.com/subject/eygyhrtx.html
网友评论