From 5b132f9bb06fd4524deaea19f635050b059528aa Mon Sep 17 00:00:00 2001 From: "Shashank S. Harivyasi" <45761248+harivyasi@users.noreply.github.com> Date: Mon, 14 Aug 2023 13:33:22 +0000 Subject: [PATCH] addition to devcontainer --- .devcontainer.json | 46 ++++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index 4dd04d6..bc41c7c 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,25 +1,31 @@ { - "name": "MapUsingPy", - "image": "mcr.microsoft.com/devcontainers/python", - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], + "name": "MapUsingPy", + "image": "mcr.microsoft.com/devcontainers/python", + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "pip install --user -r requirements.txt", - "postStartCommand": "zsh download_prerequistes.sh", + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "pip install --user -r requirements.txt", + "postStartCommand": "zsh download_prerequistes.sh", - // Configure tool-specific properties. - "customizations": { - // Configure properties specific to VS Code. - "vscode": { - "extensions": [ - "ms-python.python", - "ms-python.vscode-pylance", - "ms-python.autopep8" - ] - } - }, + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + "extensions": [ + "ms-python.python", + "ms-python.vscode-pylance", + "ms-python.autopep8" + ], + "settings": { + "[python]": { + "editor.defaultFormatter": "ms-python.autopep8" + }, + "editor.formatOnSave": true + } + } + }, - // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. - "remoteUser": "vscode" + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" }