2015年4月5日 星期日

Netbean 8 上的常用快速鍵 (Keyboard Shortcuts)

在寫 Servlet/JSP 程式時,以下的快速鍵可以幫忙節省鍵盤輸入的時間(因為,程式設計師的生產力和時間有關係) 


  • 往下重覆一行(Duplicate line down): Ctrl+Shift+Down 
  • 往上重覆一行(Duplicate line up): Ctrl+Shift+Up 


 若要自動格式化程式碼(Format source code),讓你的程式縮排更美:
  • 格式化程式碼: Alt+Shift+F
要找更多的快速鍵? (M)Tool > Options > (B)Keymap 可以找到更多 Netbeans 8 所提供的快速鍵。

Complete line and create a new line: Ctrl+Shift+semicolon
Complete line: Ctrl+Semicolon


Bookmarks:
Ctrl+Shift+M: Add or Remove the bookmark
Ctrl+Shift+Period: Bookmark history popup next
Ctrl+Shift+Comma: Bookmark history popup previous


References:
8 New & Beefed Up NetBeans Keyboard Shortcuts!

沒有留言: