Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

dev-environment

Personal notes for configuring development environment - WSL, VS Code, Vim, Git

WSL Installation

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

Install uv

curl -LsSf https://astral.sh/uv/install.sh | sh

Linux configuration

Just copy dotfiles

VS Code Installation

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.json Note Machine, not User folder
  • Windows Extensions: %HOME%\.vscode\extensions\extensions.json
  • Linux Extensions: ~/.vscode-server/extensions/extensions.json

About

Personal notes for configuring development environment - WSL, VS Code, Vim

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors