例如,HTML 看起来像这样:
<script>
var hello;
</script>
格式化几次后变成这样(Code
> Reformat code...
):
<script>
var hello;
</script>
最佳答案
我仍然不知道为什么要添加额外的行,但我找到了阻止它的方法。
文件
> 设置
> 编辑器
> 代码风格
> HTML
> Other
> Keep white spaces inside:
> 然后添加script
关于javascript - 为什么 intellij 格式化程序在嵌入脚本后附加一个空行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28281238/