有没有办法格式化vue模板,让所有标签属性都在同一行

Is there a way to format vue template to have all tag attributes at the same line

几次迭代之前,我们的一位开发人员在整个代码库上应用了 --fix with eslint 规则 vue/max-attributes-per-line,因此我们的 vue 模板中每行最多有 1 个属性。

有没有办法格式化回来?

正在尝试使用 phpStorm 格式选项 "wrap attributes":"Do not wrap" 但它不适用于已经包装的属性..

有什么想法吗?

确保禁用保留换行符并将换行属性:设置为不换行 文件中 |设置 |编辑|代码风格 | HTML |其他