vvscode / vs-code-typescript-class-organizer

VS Code extension for organizing your TypeScript code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript Class Organizer for VS Code

VS Code extension for keeping your TypeScript code organized by grouping and ordering class members.

Features

Organize currently opened TypeScript file or all TypeScript files in your project.

TypeScript Class Organizer

Usage

Command Palette

From the command palette you can:

  • organize current TypeScript file by invoking command "TypeScript Class Organizer: Organize Current File",
  • organize all TypeScript files in the project by invoking command "TypeScript Class Organizer: Organize All Files"

Command Palette

Shortcuts

You can invoke command "TypeScript Class Organizer: Organize Current File" by using the shortcut Ctr + Shift + O. You can change the shortcut by assigning a different shortcut to command "tsco.organize".

Shortcut

Context menu

You can invoke command "TypeScript Class Organizer: Organize Current File" by using the context menu item.

Context Menu

Configuration

Extensions supports the following configuration options:

  • tsco.useRegions: When true regions surounding member groups are added. True by default.
  • tsco.addPublicModifierIfMissing: When true public access modifier is added. True by default.
  • tsco.addRegionIdentation: When true regions are idented with class members. True by default.
  • tsco.addRegionCaptionToRegionEnd: When true region caption is added to region end as well. True by default.
  • tsco.groupPropertiesWithDecorators: When true properties with decorators will come first. False by default.

Change log

1.0.0

  • Initial release.

1.0.9

  • added add public modifier if missing option
  • added add region identation option
  • added end region caption option
  • added organiting type aliases, interfaces, classes and functions
  • fixed issue with identation tabs / spaces
  • fixed issue when comments were preceding class members
  • fixed issue when decorators were preceding class members
  • fixed issue with removing redundant empty lines
  • updated referenced packages

1.0.10

  • added group properties with decorators option

1.0.11

  • fixed issue with duplicated regions
  • addded grouping by decorator for all elements, not just properties when groupping by decorators
  • added a new line between group with decorators and group without decorators when groupping by decorators

About

VS Code extension for organizing your TypeScript code

License:MIT License


Languages

Language:TypeScript 99.9%Language:PowerShell 0.1%