IntelliJ 10.0.1設置JDK:
File-->Project Structure: project SDK--New a jsdk.
ctrl + y 刪除行
psvm 然後按Tab鍵,會自動生成public static void main方法
sout然後按Tab鍵,會自動生成System.out.println
psfi 然後按Tab鍵,會自動生成public static final int
ifn然後按Tab鍵
Ctrl-N(Go to | Class…) 再鍵入類的名字可以快速地在編輯器裏打開任何一個類
Ctrl+R 替換文本
Ctrl-Shift-N(Go to | File…)打開工程中的非Java文件
使用Ctrl-Shift-F7(Search | Highlight Usages in File)可以快速高亮顯示當前文件中某一變量的使用地方
Ctrl+Shift+F 全文搜索功能
Ctrl+Shift+Space 補全,語句自動完成 Statements completion
Ctrl+W (select word)
Ctrl+D 複製一行
Ctrl+Shift+u 大小寫切換
Ctrl+P 方法參數提示
ctrl+q 顯示方法的完全名稱 == Eclipse中的F2
Ctrl+Alt+V Extract Variable
調試過程中 Ctrl+Shift+I看到這個表達式的值
Settings->Keymap->Main menu->Navigate->File Structure 設置顯示類的所有方法的快捷鍵
Settings->Keymap->Main menu->Code->Reformat Code 格式化快捷鍵
Ctrl+B 進入方法==Eclipse中的F3
Ctrl + Alt + B
Ctrl + Alt + T 用*來圍繞選中的代碼行( * 包括if、while、try catch等)
Ctrl + ]/[ 跳轉到代碼塊結束/開始處
Ctrl + H : 查看類繼承結構
Ctrl + Alt + Shift + T refactor
CTRL+ALT+T 把選中的代碼放在 TRY{} IF{} ELSE{} 裏
Alt + F7 opens the dialog to find the usages
Ctrl +Alt +F7 jump to one of the callers of the method
⌘+F12 (File Structure)
破解及Jrebel:http://note.youdao.com/share/?id=33c21fb3c24e81c2781872525e22ade2&type=note
--------------
我的配置
1、修改編輯器的字體(也就是代碼的字體):設置-Editor-Color&Font
2、修改tab鍵和編輯器的光標位置,IntelliJ IDEA默認時,光標是可以隨意放置的,用慣了Eclipse的人會覺得很不方便。
修改光標位置:設置-Editor-將Allow placement of caret after end of line的勾去掉
3、設置tab的使用:
設置-CodeStyle-general :use tab character
設置-CodeStyle-java :use tab character
4、Settings > Code Style > General > Right margin
http://www.cnblogs.com/bluestorm/archive/2013/05/20/3087889.html(轉)
http://www.ituring.com.cn/article/37792