- Install VS Code
brew install --cask visual-studio-codeThis also adds the
codecommand, so there's nothing else to set up. - Open the current folder in VS Code
code .
Check it worked
- Check the code command works
code --version
Undo it
- Uninstall VS Code
brew uninstall --cask visual-studio-code
- Install VS CodeNeeds sudo
sudo snap install code --classic - Open the current folder in VS Code
code .
Check it worked
- Check the code command works
code --version
Undo it
- Uninstall VS CodeNeeds sudo
sudo snap remove code
- Install VS Code
winget install Microsoft.VisualStudioCodeClose and reopen PowerShell afterwards so it can find the code command.
- Open the current folder in VS Code
code .
Check it worked
- Check the code command works
code --version
Undo it
- Uninstall VS Code
winget uninstall Microsoft.VisualStudioCode