Show: Object Pascal C++
Display Preferences

Source Code Formatter

From Appmethod Topics
Jump to: navigation, search

Go Up to Getting Started with Appmethod


Appmethod provides a customizable source code formatter. The formatter can standardize many aspects of Object Pascal and C/C++ source code formatting, including:

  • Indentation
  • Spacing
  • Alignment
  • Capitalization
  • Line breaks

The formatter is intended to be able to format compilable Object Pascal and C/C++ source code. If a source code file cannot be compiled, then the formatting results might be incorrect.

Use the source code formatter for best source code presentation. The formatter is useful in analyzing the program flow, searching for bugs, and presenting code. After many changes during iterative bug fixing, initial source code typically does not look as it should. Each method or block might be formatted with its own style, a mix of tabs and spaces might be used for indentation, and different tab size settings might be used by different authors. In this case, indentation only confuses the user instead of clarifying the program structure. Correct source formatting can help in understanding the program logic and finding bugs quickly.

Appmethod provides:

Topics

See Also

Personal tools
In other languages