|
在Source Insight中整合使用SourceFormatX原始碼美化工具 |
|
|
|
|
|
在Source Insight中整合使用SourceFormatX原始碼美化工具
下面的用法說明詳細講述了如何將 SourceFormatX 原始碼美化工具的命令列工具整合到 Source Insight 程式編輯器中並在其內快速美化和縮排程式碼與原始碼檔案。我們使用的是 Source Insight 3.5 試用版,如果您使用的是 Source Insight 的新版本或者舊版本,某些功能可能會和我們的描述與截圖略有不同。
|
Add a Tool Menu that will invoke SourceFormatX
1. Click "Options" -> "Custom Commands...".
2. Click the "Add" button, then input "SourceFormatX" to add a new tool.
3. Please fill in the form as show below: (Assuming you installed SourceFormatX in C:\Program Files\SourceFormatX\)
- Command: SourceFormatX
- Run: "C:\Program Files\SourceFormatX\SourceFormatX.exe" %f
- Dir: C:\Program Files\SourceFormatX\
4. Click "Menu.." button, scroll the "Command" box to the command "Custom Cmd: SourceFormatX" you created. Then, insert "SourceFormatX" menu item to the "Edit" menu, as show below:
5. Click "Keys.." button, scroll the "Command" box to the command "Custom Cmd: SourceFormatX" you created.
6. Then, click "Assign New Key..." button, assign new key "Ctrl+T" or other keys.
7. Click "OK" to save settings.
You may now invoke SourceFormatX command line tool by two ways:
1. Using Ctrl+T
2. By clicking "Edit" -> "SourceFormatX".
不要再浪費時間手工整理原始碼了!現在就下載 SourceFormatX 原始碼美化工具來體會全自動快速整理程式碼的快樂吧!
|