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
Insert type assertions on property access for easier migration from JS code
Single to double, double to single
Convert strings to template strings to get rid of those \
Convert string concatenations to a template string
==
and !=
(because typing another =
is hard)
From constructor argument
If the file prefix matches
JsDoc are associated with the next node. Single line comments are not. So this quickfix does the conversion for you
We have some guidance on creating your own quickfixes within our CONTRIBUTING.md. They are quite fun to write!