本文介紹了IntelliJ 折疊單行方法的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
自從我更新了我的 intelliJ 版本(14.x 到 15.x)后,它已經開始在 Java
編輯器中自動折疊單行方法:
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:
以前的版本:
public void setContext(SecurityContext context) {
this.context = context;
}
最新版本:
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!
謝謝.
推薦答案
從文件"菜單中打開設置".在編輯器"->常規"->代碼折疊"下,您將找到默認折疊"部分.
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 折疊單行方法的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!