Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 2.07 KB

quickfix.md

File metadata and controls

54 lines (30 loc) · 2.07 KB

Quick Fix

Press the TypeScript: Quick Fix shortcut alt+enter at an error location to trigger quick fixes. Select the quick fix you want and press enter to commit e.g

Add class and interface members

Type assert

Insert type assertions on property access for easier migration from JS code

Toggle quote characters

Single to double, double to single

Quotes to template

Convert strings to template strings to get rid of those \

String concate to template

Convert string concatenations to a template string

Equals to Equals

== and != (because typing another = is hard)

Wrap in read only property

From constructor argument

Import file

If the file prefix matches

Single Line Comment To JsDoc

JsDoc are associated with the next node. Single line comments are not. So this quickfix does the conversion for you

Contributing

We have some guidance on creating your own quickfixes within our CONTRIBUTING.md. They are quite fun to write!