Skip to content

origami-z/TypeScript-Interface-Sorter

Repository files navigation

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.