Home > Software design >  VSCode writing for loops
VSCode writing for loops

Time:03-28

This is doing my head in. It's just started happening in the last 24 hours. Why is 'await' the top option when inputting the variable name in a for loop? How do I fix this so that it doesn't use await as the primary option for suggestions? I don't want to have to press escape every time I write the letter 'i' to prevent this stupid program changing my function to an async function with await in the middle of the for loop.

Intellisense messing me up

Intellisense messing me up

CodePudding user response:

There's really no fix to this.

You can, however, edit settings.json, and disable the spacebar with the following key.

"editor.acceptSuggestionOnCommitCharacter"

This should stop await from being accepted on a space action.

  • Related