1. 程式人生 > >關於軟件IntelliJ IDEA的使用技巧(二)

關於軟件IntelliJ IDEA的使用技巧(二)

建模 返回值 urn 重構 模塊化 返回 leg ati lar

二,IntelliJ IDEA的工具欄介紹

2,IntelliJ IDEA菜單欄

(5)code編碼

技術分享圖片

?1.Override Methods:覆蓋方法

?2.Implement Methods:實現方法

?3.Delegate Methods:委托方法

?4.Generate:行成,發生

?5.Surround With:包圍,圍住

?6.UNwrap/Remove:打開/刪除

?7.Completion:實現

?8.Folding:折疊

?9.Insert Live Template:插入生活模板

?10.Surround with Live Template:生活模板環繞

?11.Comment with Line Comment:帶有行註釋的註釋

?12.Comment with Block Comment:帶有塊註釋的註釋

?13.Reformation Code:改革的代碼

?14.Show Reformat File Dialog:顯示重新格式化文件對話框

?15.Auto-Indent Lines:自動縮進線

?16.Optimize Imports:優化進口

?17.Rearrange Code:重新整理代碼

?18.Move Statement Down:聲明中向下移動

?19.Move Statement Up :生命中向上移動

?20.Move Element Left :移動元素左

?21.Move Element Right:移動元素右

?22.Move Line Down:線向下移動

?23.Move Line Up:線向上移動

?24.Generate Module-info Descriptors:生成模塊信息描述符

?25.Update Copyright:更新版權

?26.Convert Java File to Kotlin File:將Java文件轉化為Kotlin文件

(6)Analyze分析

技術分享圖片

?1.Inspect Code:檢查代碼

?2.Code Cleanup:代碼清除

?3.Silent Code Cleanup:無聲代碼清理

?4.Run Inspection by Name:自動檢查清除冗余資源

?5.Configure Current File Analysis:配置當前文件分析

?6.View Offline Inspection Results:查看離線檢查結果

?7.Infer Nullity:推斷出無效

?8.Locate Duplicates:查找重復

?9.Show Coverage Data:顯示覆蓋數據

?10.Analyze Dependencies :分析依賴性

?11.Analyze Backward Dependencies :分析落後的依賴關系

?12.Analyze Module Dependencies:分析模塊依賴關系

?13.Analyze Dependency Matrix:分析從屬矩陣關系

?14.Analyze Cyclic Dependencies:分析循環依賴關系

?15.Analyze Data Flow to Here :分析到這裏的數據流

?16.Analyze Data Flow from Here :從這裏分析數據流

?17.Analyze Stack Trace :分析堆棧追蹤

(7)Refactor重構

技術分享圖片

?1.Refactor This:重構這個

?2.Rename:重新命名

?3.Change Signature:重新署名

?4.Type Migration:類型遷移

?5.Make Static:使靜態

?6.Convert To Instance Method :轉換到實例方法

?7.Move:移動

?8.Copy:復制

?9.Safe Delete:安全刪除

?10.Extract:提取

?11.Inline:內聯

?12.Invert Boolean:反布爾

?13.Pull Members Up:將成員拉上來

?14.Push Memberers Down:將成員推下去

?15.Push ITDs In:推動ITDs

?16.Use Interface Where Possible:使用接口

?17.Replace Inheritance with Delegation:用委托代替繼承

?18.Remove Middleman :移除調解

?19.Wrap Method Return Value:回繞法返回值

?20.Encapsulate Fields:封裝領域

?21.Replace Constructor with Factory Method:使用工廠方法替代構造方法

?22.Generify:泛型化

?23.Migrate:遷移

?24.Internationalze:國際化

?25.Convert to Java:轉換為Java

?26.Convert to @CompileStatic:轉換為@CompileStatic

?27.Modularize:使模塊化

?28.Remove Unused Resources:刪除未使用的資源

?29.Migrate App To Appcompat:將應用程序移動到Appconpat

?30.Inline Style:內聯模式

?31.Use Style Where Possible:盡可能使用風格

(8)Build構建

技術分享圖片

?1.Build Project:構建工程

?2.Build Module:構建模塊

?3.Recompile:重新編譯

?4.Rebuild Project:重新構建工程

?5.Generate Ant Build:生成Ant構建

?6.Build Artifacts:構建構件

?7.Analyze APK:分析APK

?8.Run Ant Target:運行Ant目標

關於軟件IntelliJ IDEA的使用技巧(二)