打开支撑格式后的Intellij IDEA空行 [英] Intellij IDEA Blank Lines after Opening Brace Formatting

查看:782
本文介绍了打开支撑格式后的Intellij IDEA空行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,我不记得这是默认值,但试图弄清楚如何使Intellij在打开大括号后只插入1个空行而不是2个空白行。

For some reason I do not remember this as being default but trying to figure out how to make Intellij only insert 1 blank line instead of 2 blank lines after opening brace.

这是我目前的默认设置:

This is what my current default setup is doing:

```
myMethod(arg) {


}
```

但这似乎更符合我的想法:

But this seems more logical and what I want:

```
myMethod(arg) {

}

```


推荐答案

按照本文中的建议禁用Gauge插件可以解决问题: Intellij在新块中添加额外的行

Disabling Gauge plugin as recommended in this post did the trick: Intellij adding extra line in new blocks.

这篇关于打开支撑格式后的Intellij IDEA空行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆