常用插件
-
IDE Eval Reset 破解,自動重置試用時間
-
Free Mybatis Plugin --> MyBatisX(自帶的自動生成功能較好)
-
Lombok
-
Translation
-
GitToolBox 可以看到每一行是誰提交的
-
Maven Helper
-
JRebel And XRebel for InteliJ (激活方法:https://www.cnblogs.com/flyrock/archive/2019/09/23/11574617.html)
允許自動編譯:在 Maintenance(Ctrl + Shift + Alt + /) -> Registry 中勾選 compiler.automake.allow.when.app.running;Settings -> Build, Execution, Deployment -> Compiler 中的 Build project automatically -
Grep Console 一款和IDEA Console相關的插件,可以通過expression表達式過濾日志、給不同級別的日志或者給不同pattern的日志加上背景顏去掉方法參數提示(廢棄)色與上層顏色
-
RestfulToolkit 快捷查找Restful接口,快捷鍵:Ctrl+\ --->RestfulTool(快捷鍵Ctrl+Alt+/,自帶發送請求功能)
-
Alibaba Java Coding Guidelines 阿里代碼編碼指南
-
CodeGlance3 窗口右側代碼預覽
-
Active Tab Highlighter 高亮選中的Tab標簽
-
HighlightBracketPair 對稱括號高亮顯示
-
Chinese(Simplified) Language Pack 漢化插件
-
Mybatis Log Plugin 打印拼裝后可直接執行SQL
-
Presentation Assistant 快捷鍵展示
-
SequenceDiagram 代碼執行時序圖
-
Vue.js
-
easycode 自動生成代碼
-
Rainbow Brackets 彩虹括號,Ctrl+右鍵、Alt+右鍵
快捷鍵
調試快捷鍵
F7 單步進入 Step Into
Shift+F7 選擇要進入的函數 Smart Step Into
F8 單步調試 Step Over
Shift+F8 跳出 Step Out
F9 繼續執行 Resume Program
Alt+F9 運行到光標處 Run to Cursor
Alt+F8 執行表達式查看結果 Evaluate Expression
Ctrl+Shift+F8 查看所有斷點 View Breakpoints
Ctrl+F8 設置或取消斷點 Toggle Line Breakpoint
常用快捷鍵對照
Windows | Eclipse | 描述 | 英文描述 |
---|---|---|---|
Ctrl+Alt+左鍵、Ctrl+Alt+B | Ctrl+T | 查看子類、方法實現類 | Go to Implementations |
Ctrl+U | 查看父類方法 | Go to Super Method | |
Ctrl+左鍵、Ctrl+B | F3 | 查看定義或引用 | Go to Declaration or Usages |
Alt+F7 | Ctrl+G | 查看引用列表 | Find Usages |
Ctrl+F12 | Ctrl+O | 文件結構 | File Structure |
Ctrl+N | Ctrl+Shift+T | 搜索類型 | Go to Class |
Ctrl+Shift+N | Ctrl+Shift+R | 搜索文件 | Go to File |
Ctrl+H | F4 | 類的繼承關系 | Type Hierarchy |
Alt+F8 | Ctrl+U | 彈出表達式監視窗口 | Evaluate Expression |
Ctrl+Alt+L | Ctrl+Shift+F | 格式化代碼 | Reformat Code |
Ctrl+F | Ctrl+F | 當前文件查找 | Find |
Ctrl+Shift+F | Ctrl+H | 全局查找 | Find in Path |
Ctrl+Shift+R | 全局替換 | Replace in Path | |
Ctrl+Alt+Z | Ctrl+Alt+Z | Git回滾 | Rollback |
Ctrl+Shift+/ | Ctrl+Shift+/ | 注釋/取消注釋 | Comment with Block Comment |
Ctrl+Tab | 快速切換tab標簽 | Switcher | |
Ctrl+E | 最近打開的文件 | Recent Files | |
Ctrl+Shift+- | 折疊代碼 | Collapse All | |
Ctrl+Shift+= | 展開代碼 | Expand All | |
Ctrl+Alt+← | 向后導航 | Back | |
Ctrl+Alt+→ | 向前導航 | Forward | |
Ctrl+Alt+O | 自動導包 | Optimize Imports | |
Alt+Insert | 自動生成 | Generate | |
Ctrl+G | 跳到指定行號 | Go to Line | |
Ctrl+空格 | 自動提示(跟輸入法沖突) | Basic | |
Ctrl+Alt+F12 | 打開文件目錄 | Show in Explorer | |
小鍵盤* | 展開項目目錄樹 | ||
小鍵盤- | 合並項目目錄樹 | ||
F11 | 添加書簽 | ||
Shift+F11 | 查看和編輯書簽 |
隱藏顯示.idea文件夾和.iml文件
配置maven,應用於所有project
取消idea自動打開項目
代碼提示忽略大小寫
去掉方法參數提示
設置Beyond Compare為默認的GIT代碼比較工具(廢棄)
自動導包
自動編譯
關閉自動更新
添加前進后退按鈕(廢棄)
鼠標懸浮提示
去掉Run with Coverage和Run with Profiler按鈕(廢棄)
高亮顯示相同字符的背景顏色
80FF83
去掉xml文件中sql背景色(廢棄)
類內部的層級關系移到上面
自動隱藏下方toolbar(廢棄)
修改后未保存的文件添加*號
設置護眼背景色(廢棄)
C7EDCC
編碼設置:text file encoding為utf-8,文件換行符使用Unix格式
設置字體大小
方法頭顯示被繼承和引用次數
批量啟動springboot項目
.idea>workspace.xml文件中添加如下節點
<component name="RunDashboard">
<option name="configurationTypes">
<set>
<option value="SpringBootApplicationConfigurationType" />
</set>
</option>
</component>
啟動項目提示:Command line is too long. Shorten command line for OauthApplication or also for Spring Boot default configuration.
.idea>workspace.xml文件中添加如下節點
<component name="PropertiesComponent">
<property name="dynamic.classpath" value="true" />
</component>
修改IDEA的JVM啟動參數
滾輪改變字體大小
git修改文件的文件夾顏色
修改注釋顏色(廢棄)
TAB多行顯示
非當前項目代碼Tab標簽顏色(默認的顏色不夠顯眼)
總是更新SNAPSHOT
類自動添加注釋
/**
* ${description}
* @author ych
* @date ${YEAR}-${MONTH}-${DAY}
*/
public class ${NAME} {
}