Personal notes for configuring development environment - WSL, VS Code, Vim, Git
wsl --install Ubuntu-22.04 --version 2
Version 2 is default now
TODO: need to investigate why the WSL 2 installation doesn't receive the correct nameserver. It worked properly in WSL 1, but networking works differently in v2. It probably has something to do with Hyper-V being configured. For now, manually copy the nameserver from the VPN
Delete the soft link to the WSL automatic /etc/resolve.conf and add the new file.
Make the system python (3.12.3) callable as python
ln -s /usr/bin/python3 /usr/bin/python
curl -LsSf https://astral.sh/uv/install.sh | sh
Just copy dotfiles
On Windows side:
- Install VS Code
- Install WSL Extension
On Linux side
code .will install VS Code Server the first time it is invoked. Can use to open VS Code in a directory or file later- Install extensions. Location will be chosen automatically. Seems to be things that require the build toolchain will install on Linux side and things that operate independently install on the Windows side
- tamasfe.even-better-toml
- ms-python.python (also installs ms-python.debugpy and ms-python.vscode-pylance automatically)
- njpwerner.autodocstring
- swyddfa.esbonio (rST LSP and Preview) TODO: get Preview working
- charliermarsh.ruff
- aaron-bond.better-comments
Attempting to keep only the WSL related settings on the Windows side and everything else in Linux
- Windows Settings:
%HOME%\AppData\Roaming\Code\User\settings.json - Linux Settings:
~/.vscode-server/data/Machine/settings.jsonNote Machine, not User folder - Windows Extensions:
%HOME%\.vscode\extensions\extensions.json - Linux Extensions:
~/.vscode-server/extensions/extensions.json