顯示具有 Netbeans 標籤的文章。 顯示所有文章
顯示具有 Netbeans 標籤的文章。 顯示所有文章

2017年5月14日 星期日

Netbeans 中 pull 特定的 remote branch

要 pull 特定的  remote branch 到本地端:

1. (M)Teams > Pull > Remote...
2. 選擇 Git Repository Location
 
3. 選擇要 pull 的 remote branch
4. OK.

2015年12月30日 星期三

Netbeans IDE 的字型設定

預設字型 (Default fonts)

預設字型會用在 menus, dialogs, views 等地方。要改變字型的大小, 需設定 netbeans.conf 中的 netbeans_default_options 屬性值。在該屬性中加入"--fontsize 16" 的參數, 預設字型便會改成 16 大小。

例如以下設定:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dfile.encoding=UTF-8 --fontsize 18"

netbeans.conf 檔案位於 [Netbeans_Home]/etc。

預設字型大小設為 18, 結果如下:



這是 fontsize 16 的結果:





參考資料:
  1. FaqFontSize (http://wiki.netbeans.org/FaqFontSize)

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!