SourceFormatX

Overview

Features

Why Use It

Formatting Show

Integration

Screenshots

Documentation

FAQs & Tips

Update History

Award Gallery

Testimonials

License Policy

CodeMorph

CodeToHtml

Integrate SourceFormatX Into Eclipse


Format Source Code within Eclipse

The following instructions allow you to format and indent the current open Java source code file in Eclipse Java IDE using the command line tool of SourceFormatX code formatter. We used Eclipse 3.1 Free Version, 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 SourceFormatX code formatter

1. Click "Run" -> "External Tools" -> "External Tools...".

2. Please fill in the form as show below: (Assuming you installed SourceFormatX code indenter in C:\Program Files\SourceFormatX\)

  • Name:                       SourceFormatX
  • Location:                   C:\Program Files\SourceFormatX\SourceFormatX.exe
  • Working Directory:     C:\Program Files\SourceFormatX
  • Arguments:               "${resource_loc}"

3. Select "Refresh" page, set the settings as show below:

4. Click "Apply" button to save settings, then click "Close" button to close dialog box.

  You may now invoke SourceFormatX command line tool by this way:

1. By clicking "Run" -> "External Tools" -> "SourceFormatX".

  Don't waste time on formatting Java source code manually any more!  Download SourceFormatX to indent and format all code!