gpt4 book ai didi

visual-studio-code - 您如何无法使用 prettier 在 vscode 上自动多行?

转载 作者:行者123 更新时间:2023-12-04 04:14:36 25 4
gpt4 key购买 nike

我喜欢 Prettier 中的所有功能,但自动多行很烦人。是否可以关闭它?

就像添加多个 CSS 选择器和 HTML 属性时,我想将它们放在一行中,而不是让每个选择器/属性单独占一行。

例如,在 CSS 上我希望它看起来像这样

h1, h2 {
color: #1B3E66;
}

而不是在保存时自动执行此操作

h1,
h2 {
color: #1B3E66;
}

最佳答案

这是不可能的。 Prettier 只有一组非常有限的配置,这不是其中之一。有关 prettier 的完整配置选项,请参阅:https://prettier.io/docs/en/options.html

关于visual-studio-code - 您如何无法使用 prettier 在 vscode 上自动多行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60981883/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com