Format Source Code within Gel
The following instructions allow you to format Java source code files in Gel Java IDE
using FormatCode 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 FormatCode
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 FormatCode in C:\Program Files\FormatCode\)
- Name: FormatCode
- Executable: C:\Program Files\FormatCode\FormatCode.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 FormatCode using Ctrl+Alt+T
1. Click "Tools" -> "Key Maps" -> "Customize Keys...".
2. In the "Categories" box select "Tools", scroll the "FormatCode".
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 "FormatCode", then drag this item to toolbar to create a new tool button.
7. Click "Close".
You may now invoke FormatCode command line tool by two ways:
1. Using Ctrl+Alt+T
2. By clicking "FormatCode" tool button.
With FormatCode Code Formatters, you can format and transform any foreign source code to meet your favourite coding style within Gel in several seconds!
|