Integrate FormatCode Into EmEditor


Format Source Code within EmEditor

The following instructions allow you to format source code files in EmEditor Text Editor using FormatCode command line tool. We used a free trial version of EmEditor Version 6.00.2, 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 "Tools" -> "External Tools" -> "Customize Tools...".

2. Click the "New" button to add a new tool menu.

3. Assuming you installed FormatCode in C:\Program Files\FormatCode\, fill in the form as show below:

  • Title:                    FormatCode
  • Command:           C:\Program Files\FormatCode\FormatCode.exe
  • Arguments:           $(Path)
  • Initial Directory:    $(Dir)
  • Icon Path:             (Leave blank, or you can specify an icon for it.)

4. Click "OK" to save settings.


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

1. By clicking "Tools" -> "External Tools" -> "FormatCode".

2. By clicking "FormatCode" button in the toolbar.


With FormatCode Code Formatters, you can format and transform any foreign source code to meet your favourite coding style within EmEditor source editor in several seconds!


Products

C/C++ Formatter

Java Formatter

C# Formatter

VB Formatter

VB.NET Formatter

PHP Formatter

ASP Formatter

VBScript Formatter

JavaScript Formatter

Delphi Formatter

Asm x86 Formatter

Asm 51 Formatter

Download

Purchase