Is there any way to tell vscode to not autoimport from specific files?
You can disable auto-import on completion and use quick-fixes instead: In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | General | Auto Import. On the Auto Import page that opens, use the checkboxes in the TypeScript/JavaScript area to enable or disable import generation on code completion.
In VSCode, go to File -> Preferences -> Settings and click on the icon in the top right hand corner to open up the settings in JSON. Et voilà! Your imports will now be organized every time you save a file.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With