SourceFormatX

軟體簡介

主要功能

為什麼要使用

源碼美化演示

整合和插件

界面預覽

常見問題

升級歷史

所獲獎項

用戶評價

許可協議

CodeToHtml

在Visual Studio .NET中整合使用SourceFormatX原始碼美化工具

現在購買
下載試用

Visual Studio .NET

在Visual Studio .NET中整合使用SourceFormatX原始碼美化工具

下面的用法說明詳細講述了如何將 SourceFormatX 原始碼美化工具的命令列工具整合到 Microsoft Visual Studio .NET 整合開發環境 (IDE) 中並在其內快速美化和縮排程式碼與原始碼檔案。我們使用的是 Visual Studio .NET 2005,如果您使用的是 Visual Studio .NET 的新版本或者舊版本,某些功能可能會和我們的描述與截圖稍有不同。

  Add a tool action that will invoke SourceFormatX within Visual Studio .NET

1. Click "Tools" -> "External Tools".

2. In the "External Tools" dialog box, choose "Add", and enter "SourceFormatX" for the menu option in the Title box.

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:          $(ItemPath)
  • Initial directory:    $(TargetDir)

6. Click "OK" to save settings.

  Add a keymapping so you can invoke SourceFormatX using Ctrl+Alt+T

1. On the "Tools" menu, choose "Options".

2. Choose "Keyboard" from the "Environment" page.

3. In the "Show commands containing" list, type "Tools".

4. In the "Command names" list, scroll to the "External Command 1" entry.

5. Place the cursor in the "Press shortcut keys" text box, and then press Ctrl+Alt+T to assign it to SourceFormatX.

6. Choose "Add", then click "OK" to save settings.

  You may now invoke the command line tool of SourceFormatX by two ways:

1. Using Ctrl+Alt+T.

2. By clicking "Tools" -> "SourceFormatX".

  不要再浪費時間手工整理原始碼了!現在就下載 SourceFormatX 原始碼美化工具來體會全自動快速整理程式碼的快樂吧!