|
在Visual C++中整合使用SourceFormatX原始碼美化工具 |
|
|
|
Add a tool action that will invoke SourceFormatX
1. Click "Tools" -> "Customize".
2. In the "Tools" page, click "Add" button, and enter "SourceFormatX".
3. Type an ampersand before one of the letters in the tool name to create an accelerator key for the command when it appears on the Tools menu. For example, if you use "SourceFormat&X", the letter 'x' will be the accelerator key.
4. In the "Command" box, enter the path to SourceFormatX.exe, or choose Browse to navigate to it.
5. Fill in the form as show below: (Assuming you installed SourceFormatX code beautifier in C:\Program Files\SourceFormatX\)
- Title: SourceFormat&X
- Command: C:\Program Files\SourceFormatX\SourceFormatX.exe
- Arguments: $(FilePath)
- Initial directory: $(FileDir)
Add a keymapping so you can invoke SourceFormatX using Ctrl+Alt+T
1. In the "Keyboard" page, choose "Tools" in "Category" list box.
2. In the "Commands" list box, type "UserTool1".
3. Place the cursor in the "Press new shortcut key" text box, and then press Ctrl+Alt+T to assign it to SourceFormatX.
4. Click "Assign", then click "Close" to save settings.
You may now invoke SourceFormatX command line tool by two ways:
1. Using Ctrl+Alt+T.
2. By clicking "Tools" -> "SourceFormatX".
不要再浪費時間手工整理原始碼了!現在就下載 SourceFormatX 原始碼美化工具來體會全自動快速整理程式碼的快樂吧!
|