The 更漂亮的文档 https://prettier.io/docs/en/options.html#tabs说使用--use-tabs
覆盖默认行为。 WebStorm 自动填充 Prettier 包:
那是一个文件夹。我尝试将其更改为npm\prettier.cmd
并添加开关,但这不起作用(它只是变成红色)。
如何将 WebStorm 设置为使用 Prettier 的选项卡?
如果您的项目有.editorconfig文件,您可以覆盖缩进样式设置在那里。
# top-most EditorConfig file
root = true
[*]
indent_size = 4
indent_style = tab
我发现这些资源也很有帮助:
- https://prettier.io/docs/en/options.html#tabs https://prettier.io/docs/en/options.html#tabs
- https://editorconfig.org/ https://editorconfig.org/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)