Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>PaxtonTerryDev Typescript ExtensionNew to Visual Studio Code? Get it now.
PaxtonTerryDev Typescript Extension

PaxtonTerryDev Typescript Extension

PaxtonTerryDev

|
18 installs
| (0) | Free
Collection of Snippets and other useful features for Typescript
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ptdte README

This is a small extension that has a few snippets / code generators for Typescript files. More to be added later.

Features

Snippets classes tclass - creates basic typescript class outline

publicprop - public property declaration publicmethod - public method template

privateprop - private property declaration privatemethod - private method template

misc tReactArrow - TS React Functional Component with common imports

  • Delete async? if not applicable tFunction - TS function tFunctionExport - TS function with export

generators ensure that class properties are defined as follows

public propertyName: propertyType; OR private propertyName: propertyType;

select and copy the desired properties(including semicolon) to the clipboard, then run Create Class Constructor / Create Getters and Setters with ctrl+shift+p or by right-clicking and selecting from menu.

constructor will be created in the following format: constructor (propertyName: propertyType, ...rest) { this.propertyName = propertyName; }

getters / setters will be created in the following format:

getPropertyName(): propertyType { return this.propertyName; } setPropertyName(value: propertyType) { this.propertyName = value; }

Constructors and Getters / Setters will be generated on your cursor!!

Requirements

No dependencies required

Extension Settings

Does not change any configurations

Known Issues

None currently known

Release Notes

Initial build of Extensions and create class function. Will update in future as more needs become apparent

1.0.0

Initial release of extensions


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