Search code examples
visual-studio-codeauto-import

How to disable auto import from specific files in VSCode?


Is there any way to tell vscode to not autoimport from specific files?


Solution

  • No. VS Code will pick up auto imports from all files in your jsconfig or tsconfig project.

    If the file should not be part of your project, you can exclude it using the excludes or includes / files configuration option in the jsconfig or tsconfig