Here is my ‘User Settings’ file for VS Code. After this code section, each line is explained so you can decide if you would benefit from including it in your own settings.
{
"python.pythonPath": "/usr/local/bin/python3"
}
Line By Line
Line 2: "python.pythonPath": "/usr/local/bin/python3"
This line was added in response to the following warning reported by VS Code:
Selected interpreter is macOS system Python which is not recommended. Please select different interpreter.
The line specifies that when Python programs are run from VS Code, they should be run using the Python installation located at "/usr/local/bin/python3"
Thanks for reading!
– Andrew @ Programming Liftoff