NuxtN
Nuxt2y ago
yyatsuta

VS Code - how to disable auto imports but keep code completion?

Hey there. I have a minor but annoying issue with VS Code (Code OSS 1.92.0 to be exact).

When I start typing a name of any component in template tag, VS Code offers auto completion. However, upon using it, it explicitly imports the component in script tag, which I don't want to have because Nuxt already auto imports components.

Upon googling i found a setting "typescript.suggest.autoImports"; I've tried setting it to false, but now VS Code does not suggest component names at all.

Is there a way to have code completion but without VS Code explicitly importing components? I would be grateful for any help.
Was this page helpful?