* 利用 Astyle 來排版程式碼
[Advanced]->[Tool Configuration...]
Menu Item Name: Astyle
Command Line: C:\util\AStyle.exe --style=linux -s4 %f
Working Directory: %P
* 顯示行號
[View]->[Display Line Numbers]
* 設定 tabs 長度為 4 個空白
[Advanced]->[Configuration...]
[Editor]->[Word Wrap/Tab Settings]
[V] Use space in place of Tabs ; 個人喜好
Tab Stop Value:[4] Indent Spaces:[4]
* 把 Drag & Drop 關掉
Note: 沒特別原因,只因為個人討厭這樣功能
[Advanced]->[Configuration...]
[Editor]->[Miscellaneous]
[v] Disable Drag & Drop
* 設定搜尋正規式為 Perl 相容
Note: 個人習慣用 Perl 正規式
[Advanced]->[Configuration...]
[Search]->[Regular Expression Engine]
[v] Perl Compatible Regular Expressions
* 備份設定
; 把原先的預設附加 .bak 的方式移除
[Advanced]->[Configuration...]
[File Handling]->[Backup]
Backup file on save:
(o) No Backup ( )... ( )...
Default Backup Directory: ; 指定備份檔的目錄 (自定)
[C:\ue_autosave\]
Automatic Save: ; 自動儲存
Time (minutes) between automatic save: [20]
Version Backup: ; 儲存時或自動儲存時備份
[v] On save Format:$b$n[$Y$m$d][$c]$e
[v] On automatic save
* 關畢換行碼偵測
Note:
a. 因為每次讀取不同換行碼的檔案都會 pop-up 詢問視窗很煩
b. 各 OS 換行碼為 DOS = CR+LF, UNIX = LF, MAC = CR
c. CR = 0x0d, LF = 0x0a
[Advanced]->[Configuration...]
[File Handling]->[DOS/UNIX/MAC Handling]
Unix/MAC detection/conversion:
(o) Disable
( ) Detect file type and prompt to change (預設)
( ) Automatically convert to DOS format
...
[v] Save file as input format ;(預設: 不轉換原來的換行碼)
* 存檔時自動去除行尾空白 (Trailing spaces)
[Advanced]->[Configuration...]
[File Handling]->[Save]
[v] Trim trailing spaces on file save
* 修改游標行為 (V13 New Feature)
[Advanced]->[Configuration...]
[Editor Display]->[Cursor/Caret]
[v] Allow Positioning Beyond Line End ; 可定位超出行尾,畫表格時比較方便
...
[v] CamelCase naming stops for Ctrl left/right arrow ; 辨視 CamelCase 的字
* 關畢自動校正 (Auto Correct Keywords)
寫 C 時會自動幫你把大寫的 TRUE 跟 FALSE 改成小寫,
這是因為在 Wordfile 裡面 C 跟 C++ 是用同一組 keyword list,
要修正的方式是把 C/C++ 的 Auto Correct Keywords 關畢。
[Advanced]->[Configuration...]
[Laguage: C/C++] (menu)
[Editor Display]->[Syntex Highlighting]
[Auto Correct Keywords] (uncheck the checkbox)
星期二, 7月 07, 2009
Ultraedit 32 常用設定
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言