Certainly! Here is the improved version of the "Windows Tooling" section focused exclusively on setting up a development environment on Windows:
This guide provides quick setup instructions for Windows users. For detailed learning and exercises, see the Prework Modules.
Windows has significantly improved for web development, and with the right setup, you can create a powerful and efficient development environment.
WSL allows you to run a Linux distribution within Windows, providing access to the same tools and terminal environment as Mac and Linux users. Follow these steps to set up WSL:
-
Install WSL: Open PowerShell as Administrator and run:
wsl --install
For more detailed instructions, visit the WSL installation guide.
-
Choose a Linux Distribution: Once WSL is installed, choose a Linux distribution to install (Ubuntu is recommended for beginners).
-
Initialize Your Distribution: Open your newly installed Linux distribution from the Start menu and complete the initial setup.
-
Update and Upgrade: Run the following commands to update and upgrade your distribution:
sudo apt update sudo apt upgrade
Visual Studio Code (VSCode) is a powerful, open-source code editor available for Windows, Mac, and Linux. Install it using the following command:
winget install --id Microsoft.VisualStudioCodeOr download it directly from the Visual Studio Code website.
For complete VS Code setup instructions, see Module 2: Code Editor Setup.
- Open VSCode: Launch Visual Studio Code.
- Open Terminal: Press
Ctrl +to open the terminal. - Open Command Palette: Press
Ctrl + Shift + Pto open the command palette. - Select Default Shell: Type
Select Default Shelland chooseWSL Bashfrom the options. - Open New Terminal: Click on the
+icon in the terminal window to open a new WSL Bash terminal.
The VetsWhoCode Extension Pack includes everything you need for our curriculum:
- Open VS Code
- Press
Ctrl + Shift + Xto open Extensions - Search for "VetsWhoCode Extension Pack"
- Click Install
This pack includes:
- Prettier: Code formatter
- ESLint: Linting tool for JavaScript
- GitLens: Supercharge the built-in Git capabilities
- Live Server: Local development server with live reload
- Auto Rename Tag: Automatically rename paired HTML tags
- And more!
Also install the Vets Who Code HashFlag Extension to proudly display your affiliation:
- Search for "HashFlag" in Extensions
- Click Install
Improve your productivity by mastering keyboard shortcuts. Here are some great resources for Windows shortcuts:
Additionally, you can install CheatSheet for Windows alternatives to see all the shortcuts available in each application.
Consider installing the following tools to further enhance your development environment:
- Node.js and npm: JavaScript runtime and package manager:
winget install OpenJS.NodeJS
- Git: Version control system:
winget install Git.Git
- Zsh and Oh My Zsh: Improved shell and its configuration framework (optional for advanced users):
winget install Zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
To make your code editor more comfortable, check out these two podcast episodes for the best tips and extensions:
The podcasts are great, but you can also read the show notes for a quick summary.
With these tools and tips, you're well on your way to creating a powerful and efficient Windows development environment. Good luck, and happy coding! 🚀