Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>pascal-uses-formatterNew to Visual Studio Code? Get it now.
pascal-uses-formatter

pascal-uses-formatter

tuncb

|
2,474 installs
| (3) | Free
sorts the uses section in pascal files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

delphi-uses-formatter

Formats uses sections of pascal files

Formatting follows this style:

uses
  AllUnitsAreAlphabeticallySorted,
  UnitA,
  UnitB,
  UnitC;

The extension gets activated on pascal and objectpascal languages or on first command use.

Command: pascal-uses-formatter.formatUses

Settings

  • pascal-uses-formatter.formatOnSave: when the extension is activated it also auto formats on save.

  • pascal-uses-formatter.excludePatterns: An array of glob patterns for file names to exclude from sorting.

  • pascal-uses-formatter.formattingStyle: Select formatting style.

(Default) Comma at the end:

uses
  UnitA,
  UnitB,
  UnitC;

Comma at the beginning:

uses
    UnitA
  , UnitB
  , UnitC
  ;
  • pascal-uses-formatter.overrideSortingOrder: add specific units to order them at the beginning of uses sections.

overrideSortingOrder

Build Status

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft