截止 2016-07-21,使用jdk 8 語法編寫的最新的 Eclipse Neon 已經(jīng)有7個里程碑版本(Milestone): http://www.eclipse.org/eclipse/news/4.6/M1/ http://www.eclipse.org/eclipse/news/4.6/M2/ http://www.eclipse.org/eclipse/news/4.6/M3/ http://www.eclipse.org/eclipse/news/4.6/M4/ http://www.eclipse.org/eclipse/news/4.6/M5/ http://www.eclipse.org/eclipse/news/4.6/M6/ http://www.eclipse.org/eclipse/news/4.6/M7/
讓我們看看有哪些改進吧!
M1 可以禁用theme(主題)提高性能。工具欄>Window>PReferences>Appearance,右側(cè)窗口中復選框“Enable theming(requires restart)”M2M3 一鍵隱藏頂部全部按鈕。工具欄>Window>Appearance>hide toolbar修改了Workspace切換框的頂部文字描述。 并提高了下拉菜單歷史記錄上限從5提高到10。M4 增加軟換行按鈕“Toggle Word Wrap“??闯L的一行代碼再也不用左右拖動了。增大/減小字體快捷鍵Ctrl + =/Ctrl + -。需要先點擊代碼編輯器得到焦點。M5 代碼Temple模板中增加’date’變量,自動生成今天的日期,還可以定制格式。alt+/代碼補全可以匹配全文了。比如,System.ut這時自動補全,可以發(fā)現(xiàn)System.out和System.currentTimeMills()!M6 Eclipse界面里的全部小圖標會根據(jù)分辨率自動調(diào)整大小M7 增加交互性能,減少內(nèi)存占用新的Import Projects 向?qū)В‵ile > Open Projects… 或 右鍵項目名 > Import… ),增加了對普通java Project, Dynamic Project, git項目或 maven 項目的自動識別,不用手動選擇項目類型了!一定要嘗試 dark 主題!不用忍受系統(tǒng)默認的滾動條了!主題滾動條已經(jīng)可以使用了。如果還是喜歡系統(tǒng)滾動條,在 eclipse的安裝目錄/bin/eclipse.ini 中設置VM參數(shù) swt.enable.themedScrollBar 為 false.Quick access (Ctrl+3) is a small text field in the toolbar.全屏! (Alt+F11)自動保存!(Preferences > General > Editors > Autosave) 多年以來呼之欲出的功能支持在 Outline 側(cè)邊欄中選中多個類全局搜索新建Annotation 時可以選擇 @Retention, @Target and @Documented,注解類開發(fā)更方便!快速添加 @NonNull 標簽代碼自動排版code formatter(ctrl+shift+F)又多了幾個設置 :for循環(huán) 分行(separate lines) 顯示debug 不同項目的同一個類優(yōu)化(Preferences > Java > Debug > Do not install breakpoints from unrelated projects)新聞熱點
疑難解答