Windows
Overview
While you can (and many do) use Windows for web development, unless you're developing dot-net apps in Visual Studio (not the same as Visual Studio Code), you'll be saving yourself a lot of heartache if you install Linux as an app within Windows, and utilize the tools that provides for you, instead (Even Microsoft thinks so, and provides an explanation as to why here.
You'll still be able to run VS Code as you would in a Windows environment, but with the added bonus of being to work within the same terminal environment as Mac and Linux users, in other words, the tools that the open-source community was founded on and still uses primarily to this day.
Windows 10 Users:
If you are on Windows 10, this is a lot easier to accomplish than you may think.
- The first thing you'll want to do is install Windows Subsystem for Linux... instructions to do so may be found here
- Follow the instructions to install WSL and the Linux distribution of your choice... Ubuntu is recommended if you've never used Linux before.
- Once your distribution is initialized, you'll be able to pull up a Linux terminal (it will look a lot like a Windows Command Prompt, but will run the BASH terminal environment. For more on BASH, click here.
- As an added bonus, Git, the version-control system you'll be learning in this course, is the program that Linus Torvalds (creator of Linux) uses as well, and every version of Linux comes with it, pre-installed.
- Next, download and install VSCode. VSCode is the development environment you'll be learning to use throughout the course, and is the preferred environment for many professional developers. It's available to Windows, Mac and Linux users (you'll be downloading the Windows version).
After you have Linux and VSCode installed, follow these instructions to set up VSCode to run WSL Linux & BASH (that is, the terminal) directly from VSCode: Enable Windows Subsystem for Linux on your Windows 10 machine.
- Open Visual Studio Code and press and hold
Ctrl + `
to open the terminal. - Open the command palette using
Ctrl + Shift + P
. - Type -
Select Default Shell
. - Select WSL Bash from the options.
- Click on the + icon in the terminal window. The new terminal now will be a WSL Bash terminal! these instructions are credited to stackoverflow.com user therobinkin in his answer to this question
Pre-Windows 10 Users:
If you are not on Windows 10 (that is, you have not purchased a new computer in over 6 years), don't fret. You may not have access to WSL, but you can still get much of the same goodness by installing Git Bash. For Win8 & below, skip steps 1-4 of the Windows 10 instructions above and install Git Bash from the download link on the GitForWindows website instead. Afterwards, proceed with step 5 and install VSCode. Setting up Git Bash in VSCode is identical to the process of setting up WSL Bash in VSCode, with the obvious exception being that you'll select 'Git Bash' as your default terminal, instead of 'WSL Bash'
You do NOT need to install a new terminal program, VSCode comes with this functionality built-in, and in most regards, their built-in terminal is superior to any other one you might install separately. However, should you feel the need later on, cmder comes highly recommended. (Again... you DO NOT NEED this, it's NOT required. Don't install it unless you feel the internal terminal is bogging down VSCode too much, take time to get used to that one first, and for your own sanity's sake, do not install the full version if you already went through the instructions above, which you should have by the time you're reading this).
Now I'm sure you want to make your code editor more comfy, so checkout these two podcast episodes here and here for the best tips and extensions out there. The podcast is great, but you can just read the show notes.
For Windows, check out this Reddit thread.