Format Source Code within JPad
The following instructions allow you to format Java source code files in JPad Pro
using FormatCode command line tool. We used a free trial version of JPad Pro Version 6.5, 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 "View" -> "Toolbars...".
2. Check the "Command Line" item, then click "OK".
3. In the "Command Name" text box of tool bar, input "FormatCode", then click "Define Command" tool button.
3. Assuming you installed FormatCode in C:\Program Files\FormatCode\, fill in the form as show below:
- Working Directory: FormatCode
- Output: FormatCode
- Command line: "C:\Program Files\FormatCode\FormatCode.exe" $editor.path
4. Click "OK" button to save settings.
You may now invoke FormatCode command line tool:
1. By clicking the "Run Command" tool button of tool bar.
With FormatCode Code Formatters, you can format and transform any foreign source code to meet your favourite coding style within JPad source editor in several seconds!
|