[英]How to stop vscode from removing indent when closing curly braces
hope you guys can help me out, vscode is removing the indentation when I close curly braces and this is annyoing me, here is a gif of what's happenning希望你们能帮助我,当我关闭花括号时,vscode 正在删除缩进,这让我很生气,这是正在发生的事情的 gif
The reason is your VS code doesn't know about JSX in your JS files.原因是您的 VS 代码不知道 JS 文件中的 JSX。 Try to change your user settings or workspace settings as below:
尝试更改您的用户设置或工作区设置,如下所示:
// Place your settings in this file to overwrite the default settings
{
"files.associations": {
"*.js": "javascriptreact"
}
}
Note: You might need to restart VSCode.注意:您可能需要重新启动 VSCode。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.