Format Source Code within SourceEdit
The following instructions allow you to format source code files in Source Edit
using FormatCode Code Formatter command line tool. We used a freeware version of SourceEdit 4.0.3, so
if you use an older or even a newer version then several screenshots or menu items may differ from our description.
Add a Tool Menu that will invoke FormatCode
1. Click "Tools" -> "Tool Configuration...".
2. Then, fill in the form as show below: (Assuming you installed FormatCode in C:\Program Files\FormatCode\)
- Menu Item Text: FormatCode
- Command Line: C:\PROGRA~1\ANYSTY~1\ANYSTY~1.EXE $(FullName)
- Working Directory: $(FileFolder)
4. Click "Add a hotkey for this tool" button, then input as show below:
5. Click "OK", then click "Close" to save settings.
You may now invoke FormatCode command line tool by two ways:
1. Using Ctrl+Alt+T
2. By clicking "Tools" -> "User Tools and Add-ins" -> "FormatCode".
With FormatCode Code Formatters, you can format and transform any foreign source code to meet your favourite coding style within Source Editor in several seconds!
|