java之idea基本配置

來源:互聯網
上載者:User

標籤:for   exe   java   詞典   out   cli   atl   灰色   查看   

外掛程式配置 ctrl+alt+s
  • 搜尋maven,進行配置maven倉庫
  • 搜尋plugins添加mybatis外掛程式
  • 搜尋git配置路徑指向安裝目錄的git.exe
  • 有道詞典外掛程式:Translation(alt + 0 和 alt+1)
  • maven視圖外掛程式 搜尋maven helper
  • 主題地址:http://www.riaway.com/themeshow.php?tid=58$cid=1
  • 外掛程式網站:http://www.hollischuang.com/archives/966
常用快速鍵
  • try catch : ctrl + alt + T
  • 參數名提示 : ctrl + p
  • 忽略大小寫設定:code completion 中 第一個選擇框改為none
  • 自動補全:alt + enter 或者 ctrl + alt + V
  • 格式化: ctrl + alt + L
  • 匯入包:ctrl + enter
  • 最佳化包:ctrl + alt + o
  • get set 構造:alt + insert
  • Ctrl+Alt+I,將選中的代碼進行自動縮排編排
  • ctrl + Q 傳回值提示
調式
  • F9 resume programe 恢複程式
  • Alt+F10 show execution point 顯示執行斷點
  • F8 Step Over 相當於eclipse的f6 跳到下一步
  • F7 Step Into 相當於eclipse的f5就是 進入到代碼
  • Alt+shift+F7 Force Step Into 這個是強制進入代碼
  • Shift+F8 Step Out 相當於eclipse的f8跳到下一個斷點,也相當於eclipse的f7跳出函數
  • Atl+F9 Run To Cursor 運行到游標處
  • ctrl+shift+F9 debug運行java類
  • ctrl+shift+F10 正常運行java類
  • alt+F8 debug時選中查看值
添加SerialVersionUID
ctrl+alt+s 下搜尋Inspections在Java下 Serialization issues 下 Serializable class without ‘SerialVersionUID‘
去除IDEA報黃色或灰色的重複代碼的下劃波浪線
ctrl+alt+s 下搜尋Inspections在General下Duplicated Code 取消勾選.提交之後就可以了
配置如何查看位元組碼
ctrl+alt+s 下搜尋External Tools 新增添加如下內容name中填寫Show  Byte CodeProgram中填寫$JDKPath$\bin\javap.exeParameters中填寫-c $FileClass$Working中填寫$OutputPath$點擊OK最後在類中右鍵選擇External Tools 下Show Byte Code

java之idea基本配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.