|
Integrate SourceFormatX Into Gel |
|
| |
|
|
Format Source Code within Gel
The following instructions allow you to format and beautify the current open Java source code file in
Gel Java IDE using
SourceFormatX Java Code Formatter command line tool.
We used a freeware version of Gel Version 1.00.RC39, 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 that will invoke SourceFormatX
1. Click "Tools" -> "Options...".
2. Click the "Tools" tree item, then click "Add" button to add a new tool.
3. Fill in the form as show below: (Assuming you installed SourceFormatX in C:\Program Files\SourceFormatX\)
- Name: SourceFormatX
- Executable: C:\Program Files\SourceFormatX\SourceFormatX.exe
- Working Directory: $(FILE_PATH)
- Parameters: $(FILE)
- Options: Nothing
- Image: Tool 0
4. Click "OK" button to save settings.
Add a keymapping so you can invoke SourceFormatX using Ctrl+Alt+T
1. Click "Tools" -> "Key Maps" -> "Customize Keys...".
2. In the "Categories" box select "Tools", scroll the "SourceFormatX".
3. Assign new key "Ctrl+Alt+T" or other keys.
4. Click "Close" to save settings.
5. Click "Tools" -> "Customize...".
6. Select "Command" page, in the "Categories" box select "Tools", then in the "Commands" box scroll to the "SourceFormatX", then drag this item to toolbar to create a new tool button.
7. Click "Close".
You may now invoke SourceFormatX command line tool by two ways:
1. Using Ctrl+Alt+T
2. By clicking "SourceFormatX" tool button.
Don't waste time on formatting Java source code by hand any more! Use SourceFormatX Java Formatter to do it for you!
|