ptdte READMEThis is a small extension that has a few snippets / code generators for Typescript files. More to be added later. FeaturesSnippets 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
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!! RequirementsNo dependencies required Extension SettingsDoes not change any configurations Known IssuesNone currently known Release NotesInitial build of Extensions and create class function. Will update in future as more needs become apparent 1.0.0Initial release of extensions |