Thanks for checking out this post! I'm trying out VS Code for Python having been using VS Studio for a while (the intellisense is really bad, which is why I am looking to change IDE). I can't seem to find the way you add a search path. In VS Studio I would add 'src' to my Search Paths which would make importing modules within 'src' clean.
How can I add my 'src' file to the search path in VS Code?
Thanks for you time looking into this!
CodePudding user response:
Open Settings.json, add the following configurations:
"python.analysis.autoSearchPaths": true, //Automatically add common search paths like 'src'.
"python.analysis.extraPaths": [
//Additional import search resolution paths
"folderA",
]