Recommend to get by: Don Jayamanne
To be able to run Python scripts in a project folder, you could add one or more Python versions so you could select the version to run your script.
Create a new item and name it Python <version>
Add line: "pythonPath": "c:/path_to_your_python/Python37/python.exe",
Don't forget to add a comma after the closing curly brace
When done, save the launch.json file
It should look something like this:
Now you could select the name of the Python version that you added to run your code.
Note: If this doesn't work, close and reopen VSCode.
Global settings
Here are some general user preferences
Go to Files, Preferences, Settings, under User Settings, scroll down to find things that you like to customize and click "Edit in Settings.json"