Home

Awesome

<p align="center"> <br /> <a title="Learn more about Pascal Formatter" href="http://github.com/alefragnani/vscode-pascal-formatter"><img src="https://raw.githubusercontent.com/alefragnani/vscode-pascal-formatter/master/images/vscode-pascal-formatter-logo-readme.png" alt="Pascal Formatter Logo" width="70%" /></a> </p>

What's new in Pascal Formatter 2.9

Support

Pascal Formatter is an open source extension created for Visual Studio Code. While being free and open source, if you find it useful, please consider supporting it

<table align="center" width="60%" border="0"> <tr> <td> <a title="Paypal" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EP57F3B6FXKTU&lc=US&item_name=Alessandro%20Fragnani&item_number=vscode%20extensions&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif"/></a> </td> <td> <a title="GitHub Sponsors" href="https://github.com/sponsors/alefragnani"><img src="https://raw.githubusercontent.com/alefragnani/oss-resources/master/images/button-become-a-sponsor-rounded-small.png"/></a> </td> <td> <a title="Patreon" href="https://www.patreon.com/alefragnani"><img src="https://raw.githubusercontent.com/alefragnani/oss-resources/master/images/button-become-a-patron-rounded-small.png"/></a> </td> </tr> </table>

Pascal Formatter

It adds Code Formatters for Pascal language and its dialects like Delphi and FreePascal.

This extension was originally extracted from my Pascal extension

Features

Standardise your Pascal code!

It uses external tools (engines) to format the code, so you must install them prior to use the Format Document and Format Selection commands.

If you intend to format pieces of selected texts instead of the entire file, you should use FreePascal PToP, because the Jedi Code Format and Embarcadero Formatter only works for entire files.

Available settings

You can choose which formatter engine to use (required):

    "pascal.formatter.engine": "ptop"
    "pascal.formatter.enginePath": "C:\\FPC\\2.6.4\\bin\\i386-win32\\ptop.exe" 
    "pascal.formatter.engineParameters": "C:\\FPC\\2.6.4\\bin\\i386-win32\\default.cfg"

If you decide to use FreePascal PToP, you have two additional settings:

    "pascal.format.indent": 2 
    "pascal.format.wrapLineLength": 80

Available Commands

The extension seamlessly integrates with the Format Document and Format Selection commands Visual Studio Code.

format-code

There is also:

Contributors

Special thanks to the people that have contributed to the project:

License

MIT © Alessandro Fragnani