IDEA 常用快捷鍵

2022-09-14 07:45:07 字數 1025 閱讀 5819

檢視乙個類中的所有方法:alt + 7

移動一行或者多行**:alt + shift + 上下方向鍵

左右移動**,往右邊移動:選中行內的乙個字元後按 tab 鍵;往左邊移動:shift + tab

查詢被呼叫:alt + f7

檢視乙個介面的實現類:介面名的左邊向下的箭頭單擊(ctrl + alt + b)(ctrl + h)

檢視類:ctrl + b

檢視類的實現類:ctrl + alt + b

撤銷:ctrl + z

取消撤銷:ctrl + shift + z

刪除一行(?):ctrl + y

快速複製一行:ctrl + d

剪下:ctrl + x

快速新建:alt + insert(游標在專案區)

自動**:常用的有fori/sout/psvm+tab即可生成迴圈、system.out、main方法等boilerplate樣板**

例如要輸入for(user user : users)只需輸入user.for+tab

再比如,要輸入date birthday = user.getbirthday();只需輸入user.getbirthday().var+tab即可。**標籤輸入完成後,按tab,生成**。

重寫方法:ctrl + o

實現方法:ctrl + i

大小寫轉換:ctrl + shift + u

快速修復:alt + enter

自動縮排:ctrl + alt + i

格式化**:ctrl + alt + l

最近更改的**:ctrl + e

檢視當前方法的宣告:ctrl + q

重構-重新命名:shift + f6

快速建立本地變數(提取變數):ctrl + alt + v

類中查詢方法:ctrl + shift + alt + n

查詢檔案:ctrl + shift + n

查詢類:ctrl + n

查詢和替換:ctrl + r

在方法間快速移動:alt + 上下方向鍵

idea常用快捷鍵

從eclipse轉idea,但是由於idea中很多功能與eclipse並不一樣,所以不準備使用eclipse那一套快捷鍵,而是使用idea原生的快捷鍵。ctrl d 複製行 等同於eclipse的ctrl alt up down ctrl x 選中 是剪下,不選中是刪除整行 等同於eclipse的c...

IDEA常用快捷鍵

1.雙擊shift 在專案的所有目錄查詢,就是你想看到你不想看到的和你沒想過你能看到的都給你找出來 2.ctrl f 當前檔案查詢特定內容 3.ctrl shift f 當前專案查詢包含特定內容的檔案 4.ctrl n 查詢類5.ctrl shift n 查詢檔案 6.ctrl e 最近的檔案 7....

IDEA常用快捷鍵

有時候在公司用eclipse,但是個人還是喜歡idea,時間長了很多常用的快捷鍵都用不到,在這記錄下方便以後查閱 ctrl enter,匯入包,自動修正 ctrl alt l,格式化 ctrl alt i,將選中的 進行自動縮排編排,這個功能在編輯 jsp 檔案時也可以工作 ctrl r,替換文字 ...