Skip to content
Yefer YV edited this page Sep 10, 2026 · 15 revisions

change/add whichkey keymaps

  • add this to your settings.json

    {
      "whichkey.bindingOverrides": [
        {
          "keys": "g.s",
          "name": "Go to line",
          "type": "command",
          "command": "workbench.action.gotoLine"
        }
      ]
    }

read more

Install C compiler on Windows

  • Install msys2 C compiler

    winget install prefix-dev.pixi
    ~/appdata/local/pixi/bin/pixi global install gcc gxx
  • Install gnu C compiler

    set-executionpolicy remotesigned currentuser  # to allow script execution
    curl.exe get.scoop.sh | iex                   # to install scoop
    scoop bucket add extras                       # to add more package repositories
    scoop install gcc
  • Install minGW C compiler

    winget install BrechtSanders.WinLibs.POSIX.UCRT.LLVM
    # scoop install mingw-winlibs-llvm-ucrt
  • Install Clang C compiler

    winget install MartinStorsjo.LLVM-MinGW.UCRT
    # pixi global install clang
  • Install microsoft C compiler gist tutorial youtube tutorial

    winget install Microsoft.VisualStudio.2022.BuilTools --force --override "--passive --wait --add Microsoft.VisualStudio.Workload.VCTools"
    [Environment]::SetEnvironmentVariable("PATH", "$env:PATH;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuilTools\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe", "user") # PATH may change according to new version

Msys2's zsh support for Windows terminal

  • copy Retronvim's .zshrc to ~/.zshrc then add this to your settings.json (ctrl+shift+p then open settings file (JSON))

    "profiles":
    {
        "list":
        [
            {
                "commandline": "sh -c 'HOME=/c/Users/$(whoami); msys2.cmd -shell zsh -full-path'",
                "guid": "{00000000-0000-0000-ba54-000000000001}",
                "icon": "%USERPROFILE%/scoop/apps/msys2/current/msys2.ico",
                "name": "zsh (MSYS2)",
                "startingDirectory": "%USERPROFILE%"
            },
        ]
    },
  • tip: ctrl + shift + m to enter marks-mode (tmux-like copy mode)

install conda

  • with scoop using zsh (msys2), see: https://github.com/conda/conda/issues/9922 scoop insall mambaforge then add to your ~/.zshrc: eval "$('/c/path/to/miniconda3/Scripts/conda.exe' 'shell.zsh' 'hook' | sed -e 's/"$CONDA_EXE" $_CE_M $_CE_CONDA "$@"/"$CONDA_EXE" $_CE_M $_CE_CONDA "$@" | tr -d \x27\\r\x27/g')" then relaunch vscode and choose your virtual environment (view vscode statusbar and click to change)

  • with nixpkgs

    nix-env -iA nixpkgs.conda
    echo 'source $HOME/.conda/etc/profile.d/conda.sh' | tee -a ~/.bashrc -a ~/.zshrc | sh
    conda install --name base conda=24.3.0
    conda update conda

    then choose your virtual environment (view vscode statusbar and click to change)

  • with brew

    brew install mambaforge
    conda init

    then relaunch vscode and choose your virtual environment (view vscode statusbar and click to change)

  • cheatsheet: curl cht.sh/conda

pixi virtual environment

  • run pixi init to initialize a project then pixi add python to add dependencies then pixi shell on linux/mac/windows or pixi run zsh on msys2 to activate a virtual environment then launch code . then select the virtual environment (view vscode statusbar and click to change), then the python LSP (completion, diagnostics ...) for external libraries should work

  • alternatively in a new terminal run pixi init > pixi add python > pixi run zsh

  • RetroNvim already adds "python.defaultInterpreterPath": ".\\.pixi\\envs\\default\\python.exe" in settings.json as default virtual-environment/interpreter on Windows 10 if overwritten then manually choose the pixi virtual environment (view vscode statusbar and click to change) .\\.pixi\\envs\\default\\python.exe on windows and ./.pixi/envs/default/bin/python on linux/macos

  • cheatsheet: https://pixi.sh/latest/basic_usage https://code.visualstudio.com/docs/python/environments

additional chrome extensions: