Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default Python interpreter to VSCode #55

Open
guimou opened this issue Jul 4, 2024 · 1 comment
Open

Add default Python interpreter to VSCode #55

guimou opened this issue Jul 4, 2024 · 1 comment

Comments

@guimou
Copy link
Collaborator

guimou commented Jul 4, 2024

Example, add this to the launcher, with pre-check if files exist:

 #!/usr/bin/env bash

mkdir -p ${HOME}/.local/share/code-server/User
cat <<EOF > ${HOME}/.local/share/code-server/User/settings.json
{
  "python.defaultInterpreterPath": "/opt/app-root/bin/python3"
}
EOF

mkdir -p ${HOME}/.vscode
cat <<EOF > ${HOME}/.vscode/settings.json
{
  "python.defaultInterpreterPath": "/opt/app-root/bin/python3"
}
EOF

# VSCode Entrypoint
. /opt/app-root/bin/run-code-server.sh
@shalberd
Copy link

correct, see also the other user's question in #41 and my comment: #41 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants