DEV Community

Discussion on: How Pros Automate Repetitive Code using VS Code

Collapse
hyoretsu profile image
Aran Leite

marketplace.visualstudio.com/items...
Actual pros, that extension automatically applies snippets when creating files.

Collapse
ruppysuppy profile image
Tapajyoti Bose Author

Thanks for sharing this Aran. It is of great help for competitive coding due to the common structure of the template, but for development purpose, you will be working against it a lot of the time. Eg: a .ts can store shared variables, interfaces or even redux reducers, so finding the context for the .ts would be a tad difficult

Collapse
hyoretsu profile image
Aran Leite • Edited on

Not actually, since you can tweak it by regex. I've got different templates for styled-components, DB entities, interfaces, Express controllers/routes, services, and even Jest files. They all either have a unique prefix/suffix or are under a specific folder.

Thread Thread
ruppysuppy profile image
Tapajyoti Bose Author

Yeah, its a nice one. Thanks for sharing!