我正在使用 VS Code 更漂亮的插件来格式化我的代码,我如何添加一个设置来在我格式化我的代码时不添加或删除分号?我知道此功能是在 1 月份添加的,但我在 PR 或问题中没有提到如何将其添加到设置中。
最佳答案
来自readme :
prettier.semi (default: true)
Whether to add a semicolon at the end of every line (semi: true), or only at the beginning of lines that may introduce ASI failures (semi: false)
你必须将 prettier.semi
设置为 false
。
更改更漂亮的设置 see ,
Like all other vscode settings
note: These settings are prefixed with prettier.
关于javascript - 如何删除更漂亮的分号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45404823/