Set up Development Environment for Windows


Vscode

  1. https://code.visualstudio.com/docs/setup/windows
  2. Extensions:
    • HTML: Live Preview, Live Server

Git bash

  1. Visit https://git-scm.com/download/win. Or download using powershell winget install --id Git.Git -e --source winget.
  2. I suggest to change Terminal in vscode from Powershell to Git Bash.
  3. Generate ssh key https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent. ssh-keygen -t ed25519-sk -C "YOUR_EMAIL"
  4. Copy the ssh key public pair https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account. clip < ~/.ssh/id_ed25519.pub
  5. Add ssh key to github to authenticate. Profile Icon > Settings > Access > SSH and GPG keys > paste step 4.
  6. Sign github via ssh. ssh -T git@github.com

Python

  1. Anaconda https://docs.anaconda.com/free/anaconda/install/windows/
    • Be aware conda command may only work in powershell.
  2. pyenv. In powershell, Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile F:\down\install-pyenv-win.ps1; & F:\down\install-pyenv-win.ps1

Docker

  1. In powershell, upgrade wsl. wsl --update
  2. Install docker desktop. https://docs.docker.com/desktop/install/windows-install/
  3. Change wsl data location. https://stackoverflow.com/questions/62441307/how-can-i-change-the-location-of-docker-images-when-using-docker-desktop-on-wsl2
  4. Change docker disk location by, settings > resources > advanced > disk image location.

References