Didier68
Didier68

Reputation: 1323

How to prevent VSC from adding "require"?

While editing some JS files, VSC systematically adds "require()" calls, which I have to remove as quickly

How to prevent VSC from adding theses lines with "require"?

Thanks Didier

Upvotes: 0

Views: 313

Answers (1)

Tibebes. M
Tibebes. M

Reputation: 7548

You can create a jsconfig.json file inside your project and set "javascript.suggest.autoImports" to false as documented here to disable auto-import IntelliSense in your code-base.

You can alternatively disable it globally by going to VSC settings (Ctrl + ,), search for "javascript auto import" and disable there.

Upvotes: 1

Related Questions