Visual Studio Code can convert your long chains of
How to use this feature
- Place the cursor next to the first letter of the first function name that encloses the promise chain.
Cmd + Shift + Pand select
Quick fix(You can also select the lightbulb icon that appears).
- Select Convert to async function.
- Now repeat this step on the next function, but select Convert all to async function.
This also works as expected with