2

I would like to use VS code for multiple python projects. Each of which uses a different virtualenv and has different linting rules.

How can I setup vscode to support this?

1 Answer 1

1

You can point vscode to different python executables based off the virtualenv in .vscode/settings.json:

{
    "python.pythonPath": "/Users/me/.virtualenvs/.../python"
}

and then in your .vscode/launch.json use the variable as pythonpath (inside one of the run configurations, which should be auto-generated)

"pythonPath": "${config:python.pythonPath}",
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.