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 IntelliJ IDEA


Format Source Code within IntelliJ IDEA

The following instructions allow you to format and indent the current open Java source code file in IntelliJ IDEA Java IDE using the command line tool of SourceFormatX code formatter. We used a free trial version of IntelliJ IDEA Version 3.0, 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 "Options" -> "External Tools".

2. Click "Add..." button, then click "External Tools".

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

  • Name:                    SourceFormatX
  • Description:            Format Current File With SourceFormatX
  • Program:                C:\Program Files\SourceFormatX\SourceFormatX.exe
  • Parameters:            "$FilePath$"
  • Working Directory:   C:\Program Files\SourceFormatX\

4. Click "OK" button to save settings.

  Add a keymapping so you can invoke SourceFormatX using Ctrl+T

1. Click "Options" -> "Keymap".

2. Click the default keymap, then press "Copy". Name your new keymap something like My Keymap.

3. In the "Action" column, expand the External Tools tree node, select the "Shortcuts" cell in the "SourceFormatX" row.

4. Then, please define your keymap as show below:

  You may now invoke SourceFormatX command line tool by two ways:

1. Using Ctrl+T

2. By clicking "Tools" -> "SourceFormatX".

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