Ctrl + I |
格式化代碼 |
Main menu -> Code -> Reformat Code |
</tr>
</tbody>
</table>
弱弱的補充說明一下:
新買了一臺 ThinkPad E440,盡管關閉/禁用了 屏幕的快捷鍵 Ctrl + Alt + ↓,但是在 InterlliJ IDEA中這組快捷鍵還是不能用,沒辦法,最后換成了新的組合鍵 Ctrl + Alt + PageDown 。
2、File -> Settings -> Appearance & Behavior
(1).-> Appearance -> Theme -> 下拉選擇 Alloy.IDEA Theme
(2).-> Appearance -> 勾選 Orerride default fonts by(not recommended):
Name: 微軟雅黑 Size:12 Line spacing: 1.2
(3).-> Appearance -> Window Options -> 去掉勾選 Animate windows,勾選 Show tool window bars
(4).-> Appearance -> Presentation Mode -> Font size: 24
(5).-> Menus and Toolbars -> Main Toolbar -> 把 Synchronize 移到 Redo 的后面
(6).-> Menus and Toolbars -> Main Toolbar -> Rmove 掉 Help Topics
(7).-> System Settings -> Startup/Shutdown -> 去掉勾選 Reopen last project on startup,去掉勾選 Confirm application exit
(8).-> System Settings -> Project Opening -> 勾選 Open project in the same window
(9).-> System Settings -> Synchronization -> 全部勾選,并且 Save files automatically if application is idle for 3 sec.
(10).-> System Settings -> Updates -> 去掉勾選 Check for updates in channel
(11).-> System Settings -> Usage Statistics -> 去掉勾選 Allow sending usange statistics to JetBrains s.r.o.
3、File -> Settings -> Editor
(1).-> General -> Mouse -> 勾選 Change font size (Zoom) with Ctrl + Mouse Wheel
(2).-> General -> Virtual Space -> 勾選 Show virtual spaces at file bottom
(3).-> General -> Scrolling -> 去掉勾選 Smooth scrolling
(4).-> General -> Other -> Srip trailing spaces on Save,下拉選擇 All
(5).-> General -> Smart Keys -> 去掉勾選 Backspace smart indent
(6).-> General -> Smart Keys -> 去掉勾選 Reformat block on typing '}'
(7).-> General -> Smart Keys -> Reformat on paster: 選擇 None
(8).-> General -> Appearance -> 勾選 Show line numbers
(9).-> General -> Appearance -> 勾選 Show whitespaces
(10).-> General -> Editor Tabs -> Tab Closing Policy -> Tab limit: 20
(19).-> General -> Editor Tabs -> 勾先 Mark modified tabs with asterisk 【用*在Tab標簽中標識編輯過的文件】(新添加)
(11).-> General -> Code Folding -> 去掉勾選 One-line methods
(12).-> General -> Code Completion -> Case sensitive completion -> 下拉選擇 None 【去除自動補全時,大小寫敏感】
(13).-> General -> Code Completion -> 勾選 Autopopup documentation in (ms): 200
(14).-> General -> Code Completion -> Parameter Info -> 勾選 Autopopup in (ms): 200
(15).-> Inspections -> 下拉框選擇“Default” -> Spelling -> Typo -> Options ->【關閉單詞拼寫檢查】
去掉勾選 (a)Process code (b)Procss literals (c)Process comments
(16).-> Colors & Fonts -> Scheme name -> Copy 一份 Default,并命名為 blog.snsgou.com
(17).-> Colors & Fonts -> Font -> Editor Font -> Primary font: Courier New,Size: 14,Line spacing: 1.0
(18).代碼塊顏色主要參考了 Eclipse,并做了些小修改
-> Colors & Fonts -> Font
-> Colors & Fonts -> Font -> General
-> Colors & Fonts -> Font -> Language Defaults
-> Colors & Fonts -> Font -> Java
-> Colors & Fonts -> Font -> Java -> JavaDoc tag value【代碼樣本中根本沒有這貨!把我害苦了,找了好久】 -> Foreground: #3F55BF
(20). 我過濾的文件及目錄類型
->File Types -> Ignore files and folders
添加 *.iml;*.idea;*.classpath;*.project;*.settings;target;
4、File -> Other Settings -> Default Settings -> Build, Execution, Deployment
(1).->Compiler -> 勾選 Make profect automatically【自動編譯】
5、禁用一些(不想用的)插件
File -> Settings -> Plugins -> 去掉勾選:
Git Integration
GitHub
CVS Integration
TFS Integration
Flash/Flex Support
Google App Engine Integration
IDEtalk
ASP
Cloud Foundry integration
CloudBees integration
</blockquote>
6、最后記得備份一下“個性化設置”:
File -> Export Settings
注意事項:
在主菜單 File下面,有個奇怪的 Power Save Mode,顧名思義是 省電模式。當你勾選此模式以后,IntelliJ不會給你完成任何自動完成的功能,例如本來你輸入一個字符會自動提示的,勾選以后就沒有了,如果出現此問題的話可以考慮是不是自己手賤點過這個按鈕噢,這個還是比較適合開會的時候無聊看代碼用的,又省電又不影響你看代碼。
本文由用戶
pycct 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
sesese色