Home > OS >  "Module.exports" autocomplete every time I open a curly brace
"Module.exports" autocomplete every time I open a curly brace

Time:06-27

This is driving me nuts. Every time I open a curly brace I get an autocomplete suggestion for like 20 lines of code that automatically enters whenever I hit the enter key (which I do after typing a curly brace, obviously).

Example: https://imgur.com/a/LNRLNte

The code that pops up is my tailwind.config.js file verbatim.

CodePudding user response:

You can try switching accept suggestion on enter this setting to off then suggestion won't be inserted into the editor unless tab is pressed or switch to smart.

Given that not any plugin is overriding that setting.

If you have doubt why same code is popping up, it might be due to AI based plugin for suggesting (code which you used mostly) or you would have created a code snippet.

  • Related