VS Code: Easy Refactoring!



๐Ÿฆธ Become A VS Code SuperHero Today: https://vsCodeHero.com
๐Ÿง‘๐Ÿพโ€๐Ÿคโ€๐Ÿง‘๐Ÿฝ Join my Discord developer community: https://discord.gg/A9CnsVzzkZ
๐Ÿšข Deploy for FREE on Vercel: https://vercel.com/ambassadors/codestackr

These days I love using async await for promises instead of chaining .thens in JavaScript.

What if you come across an older code base that has a bunch of functions with .thens and .catches.

And you would just love to convert all of those to async await, but that would take forever, right?!

Actually, itโ€™s pretty easy. Just select the function and either click the lightbulb or press Ctrl+. and choose โ€œconvert to async functionโ€.

It even includes a try / catch. Couldnโ€™t get any easier than that!
_____________________________________

๐Ÿ› ๏ธ Tools I use:
๐ŸŸ  codeSTACKr Theme: https://marketplace.visualstudio.com/items?itemName=codestackr.codestackr-theme
๐ŸŸ  STACKr Code Font (Exclusive to my VS Code Course – https://vsCodeHero.com)
๐ŸŸ  SuperHero Extension Pack: https://marketplace.visualstudio.com/items?itemName=codeSTACKr.superhero-extensions
_____________________________________

๐Ÿ’– Show support!
PayPal: https://paypal.me/codeSTACKr
_____________________________________

๐Ÿ‘€ Watch Next:
Playlist: Web Development For Beginners – https://www.youtube.com/watch?v=Ez4yHS2dsN8&list=PLkwxH9e_vrAJ0WbEsFA9W3I1W-g_BTsbt
_____________________________________

๐ŸŒ Connect With Me:
Website: https://www.codestackr.com
Twitter: https://twitter.com/codeSTACKr
Instagram: https://instagram.com/codeSTACKr
Facebook: https://facebook.com/codeSTACKr
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#codeSTACKr #vscode #learntocode

source

You May Also Like