本文介绍了IntelliJ折叠单行方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因为我更新了我的intelliJ版本(14.x到15.x),它已经开始在 Java
编辑器中自动折叠单行方法:
以前的版本:
public void setContext(SecurityContext context){
this.context = context;
$ b $ p
public void setContext(SecurityContext context){this.context = context; }
有没有办法阻止这个?我发现原来的版本更容易上眼睛!
谢谢。
解决方案从文件菜单中打开设置。在'编辑' - >'一般' - >'代码折叠'下,你会发现一个'默认折叠'部分。
只要取消勾选'单行方法'并点击确定。
Since I've updated my version of intelliJ (14.x to 15.x) it has started automatically collapsing single line methods in the Java
editor:
Previous version:
public void setContext(SecurityContext context) {
this.context = context;
}
Latest version:
public void setContext(SecurityContext context) { this.context = context; }
Is there a way to prevent this? I find the original version much easier on the eyes!
Thanks.
解决方案 Open 'Settings' from the File menu. Under 'Editor' -> 'General' -> 'Code Folding', you will find a 'Collapse by Default' section.
Simply uncheck 'One-line methods' and click OK.
这篇关于IntelliJ折叠单行方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!