Skip to main content

VSCODE Settings

Packages:

GitLens

Ruff

Flake8

Python (To Disable double envs like: (automl)(base)):


Didn't work
and:
conda config --set auto_activate_base False : This worked
autoDocstring - Python Docstring Generator


Open the settings (File > Preferences > Settings) 
 or use the keyboard shortcut (Ctrl + ,) you can use search there

and


To change size of fonts in Tabs etc
Ctrl +  and Ctrl - to change
Then adjust font size in editor with Ctrl and mouse scroll

For debugging: 

Python Debugger: Debug using launch.json
and
in .vscode/launch.json or change to any path you like "cwd": "${fileDirname}"
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python Debugger: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "cwd": "${fileDirname}"
        }
    ]
}

Or just simply do:
import sys
sys.path.append()


VSCode can't open certain folder with remote ssh:
At windows client:
Delete all the folder in %USERPROFILE%\AppData\Roaming\Code\User\workspaceStorage
At linux client:
Delete all the folder in ~/.vscode/workspaceStorage or ~/.config/Code/User/workspaceStorage
For VSC Insiders, it's %USERPROFILE%\AppData\Roaming\Code - Insiders\User\workspaceStorage