Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>TypeScript Interface SorterNew to Visual Studio Code? Get it now.
TypeScript Interface Sorter

TypeScript Interface Sorter

Zhihao Cui

|
5,121 installs
| (1) | Free
Sort TypeScript interface properties
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TypeScript Interface Sorter

Features

This extension allows you to sort members of TypeScript interface and type declaration.

before command

find command

after command

Extension Settings

This extension contributes the following settings:

  • tsInterfaceSorter.emptyLineBetweenProperties: Controls whether an empty line should be inserted between properties.
  • tsInterfaceSorter.sortByCapitalLetterFirst: Controls whether properties started with capital letters should be sorted first separately before lower case ones.
  • tsInterfaceSorter.sortByRequiredElementFirst: Controls whether required property should be sorted first. If turned on, takes precedence over sortByCapitalLetterFirst option.
  • tsInterfaceSorter.sortTypes: When on, sort type as well as interface.

Also, editor.tabSize will determine spacing used.

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