Table of Contents

vscode

Visual Studio Code Editor

base settings

sudo apt install fonts-firacode
paru -S ttf-fira-code
settings.json
{
    "editor.fontSize": 16,
    "editor.fontFamily": "Fira Code",
    "editor.fontLigatures": true,
    "window.zoomLevel": 1.5,
    "editor.tabSize": 4,
    "editor.insertSpaces": true,
    "python.formatting.provider": "black"
}
code --install-extension Angular.ng-template
code --install-extension alefragnani.Bookmarks
code --install-extension dbaeumer.vscode-eslint
code --install-extension donjayamanne.githistory
code --install-extension doublefint.pgsql
code --install-extension eg2.tslint
code --install-extension ms-python.python

docker

on vscodium enable marketplace and install dev-containers extension

yay -S vscodium-bin-marketplace

first time remote containers attach:

mev%2unit.json
{
	"workspaceFolder": "/app/mev_query",
	"extensions": [
		"ms-python.python",
		"ms-python.vscode-pylance"
	],
	"settings": {
		"python.defaultInterpreterPath": "/usr/local/bin/python",
		"python.formatting.provider": "black",
		"python.linting.enabled": true,
		"python.linting.pylintEnabled": true,
		"python.linting.mypyEnabled": true,
		"editor.insertSpaces": true,
		"editor.tabSize": 4,
		"editor.detectIndentation": false,
		"editor.formatOnSave": false,
		"[python]": {
			"editor.formatOnSave": true
		},
		"python.testing.pytestPath": "pytest",
		"python.testing.pytestEnabled": true
	}
}

remote containers attach:

edit created configurations:

angular remote configuration
{
	"workspaceFolder": "/app",
	"extensions": [
		"christian-kohler.npm-intellisense",
		"xabikos.JavaScriptSnippets",
        "dbaeumer.vscode-eslint"
	],
	"settings": {
		
	}
}

For debugger create in app folder (for example dnnutils) file .vscode/launch.json. From vscode attached to docker container is now enabled debugger from 'Run and Debug' view

download
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Attach",
            "type": "python",
            "request": "attach",
            "connect": {
              "host": "localhost",
              "port": 5678
            }
          }

    ]
}

keyboard

keybindings.json
[
    { "key": "ctrl+s", "command": "workbench.action.files.saveAll" },
    { "key": "alt+left",  "command": "workbench.action.navigateBack" },
    { "key": "alt+right", "command": "workbench.action.navigateForward" }    
]