Pular para conteúdo

VSCode personal settings

Workspace settings

Extensions

github.copilot-chat
ms-python.black-formatter
ms-python.debugpy
ms-python.isort
ms-python.python
ms-python.vscode-pylance
ms-python.vscode-python-envs
natizyskunk.sftp
redhat.vscode-xml
redhat.vscode-yaml
samuelcolvin.jinjahtml
tamasfe.even-better-toml
yandeu.five-server
yzhang.markdown-all-in-one

Instalar as extensões:

code --install-extension <extension>

Listar extensões instaladas:

code --list-extensions --profile Python

Settings

Criar na pasta .vscode o arquivo settings.json com o codigo:

{
    "editor.rulers": [
        {
            "column": 80,
            "color": "#27AE60"
        },
        {
            "column": 100,
            "color": "#d38900"
        },
        {
            "column": 120,
            "color": "#10B3C1"
        }
    ],
    "editor.minimap.enabled": false,
    "editor.renderWhitespace": "all",
    "emmet.includeLanguages": {
        "jinja-html": "html"
    },
    "files.associations": {
        "*.html": "jinja-html"
    },
    "files.eol": "\n",
    "files.insertFinalNewline": true,
    "files.trimFinalNewlines": true,
    "files.trimTrailingWhitespace": true,
    "python.terminal.activateEnvironment": false,
    "redhat.telemetry.enabled": true,
    "terminal.integrated.shellIntegration.enabled": false,
    "yaml.schemas": {
        "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
    },
    "yaml.customTags": [
        "!ENV scalar",
        "!ENV sequence",
        "!relative scalar",
        "tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg",
        "tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji",
        "tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
    ],
    "[markdown]": {
        "files.trimTrailingWhitespace": false
    },
    "[makefile]": {
        "editor.autoIndent": "advanced",
        "editor.detectIndentation": true,
        "editor.tabSize": 4
    },
    "[python]": {
        "diffEditor.ignoreTrimWhitespace": false,
        "editor.formatOnType": true,
        "editor.wordBasedSuggestions": "off"
    },
    "[yaml]": {
        "diffEditor.ignoreTrimWhitespace": false,
        "editor.insertSpaces": true,
        "editor.tabSize": 2,
        "editor.autoIndent": "keep",
        "editor.quickSuggestions": {
            "other": true,
            "comments": false,
            "strings": true
        },
        "files.encoding": "utf8",
    },
}

Config SFTP extension

Criar na pasta .vscode o arquivo sftp.json com o codigo:

{
    "name": "My Server",
    "host": "<host>",
    "protocol": "sftp",
    "port": 22,
    "username": "<username>",
    "remotePath": "<remote_path>",
    "uploadOnSave": false,
    "useTempFile": false,
    "openSsh": true,
    "passphrase": true,
    "interactiveAuth": true,
    "privateKeyPath": "<private_key>",
    "ignore": [".vscode", ".git", ".DS_Store"]
}