Skip to content

Add default Python interpreter to VSCode #55

@guimou

Description

@guimou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions