Format Source Code within JCreator
The following instructions allow you to format Java source code files in JCreator Java IDE
using FormatCode command line tool. We used a free trial version of JCreator Pro Version 4.00.026,
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 "Configure" -> "Options...".
2. Click the "Tools" tree item, then click "New" -> "Program" to select FormatCode.exe program.
3. Then, click the "FormatCode" tree item, and fill in the form as show below: (Assuming you installed FormatCode in C:\Program Files\FormatCode\)
- Commands: C:\Program Files\FormatCode\FormatCode.exe
- Arguments: $(FilePath)
- Initial directory: $(FileDir)
4. Click "OK" button to save settings.
Add a keymapping so you can invoke FormatCode using Ctrl+Shift+T
1. Click "Configure" -> "Customize...".
2. Select "Keyboard" page.
2. In the "Category" box select "Tools", scroll the "Commands" box and select "User Tool 1".
3. Assign new key "Ctrl+Alt+T" or other keys.
4. Click "Assign", 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" -> "FormatCode".
With FormatCode Code Formatters, you can format and transform any foreign source code to meet your favourite coding style within JCreator in several seconds!
|