IDEA常用快捷模板

2021-10-18 22:40:00 字數 921 閱讀 3264

1.idea**模板所處位置 :settings - editor - live templates / postfix completion

2.常用模板

模板一:psvm public static void main(string args)

模板二:sout system.out.println();

soutm system.out.println(「hello.main」); //帶方法

soutv system.out.println("num = " + num); //帶變數的值

***.sout system.out.println(num);

模板三:fori for迴圈 iter //增強的for迴圈 itor //簡單的賦值的for迴圈

模板四: list.for 集合的遍歷

變形:list.fori //普通的遍歷迴圈 list.forr //倒序遍歷

模板五:ifn inn 變形:***.null ***.nn

模板六:prsf private static final

psf public static final

變形:psfi psfs //全域性變數

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,替換文字 ...