Here are the steps you should follow to get started working on your own computer in COMP1531.
- Install VS Code
- Install WSL by opening Powershell as an administrator then running
wsl --install
. - Reboot.
- Open the newly added "Ubuntu" program, and follow its instructions to create your user account.
- Open VS Code and install the WSL extension.
- When it installs, choose to "Connect to WSL" and wait for it to download the Linux backend for VS Code.
- Open up a terminal in WSL for the following steps.
- Open VS Code and press Cmd+Shift+P, then type "path" into the command bar.
- Choose the option that says to add code to your PATH variable.
- When prompted, give it admin permissions.
- Run
git
in a terminal, and install the required packages if asked.
- Set up git following the instructions from lab01-git-basics.
- Once Git is set up, use the command listed here to install NVM, which will let you install a modern version of NodeJS.
- Restart your terminal, then run
nvm install --lts
. - Check that it installed correctly by running
node
- you should see a prompt where you can type JS. Press Ctrl+D to exit. - Set up your SSH keys if you haven't already
ssh-keygen -t ed25519
cat ~/.ssh/id_ed25519.pub
- Copy the output and add it to your SSH keys in your GitLab settings
git clone
your project to a location of your choice. Most people create a folder called "Source" in their home directory that they keep all their code in.- Open the project by
cd
ing into its directory and runningcode .
- this opens the entire folder rather than just individual files, meaning VS Code will be much better at giving you smart predictions and the like.
- Enable auto-save in VS Code's settings.
- Install the ESLint extension to VS Code to get linting errors as you type. You should also
search your settings for "ESLint format" and enable it, so that you can easily run
eslint --fix
simply by right clicking and choosing "Format document".
Make sure to enjoy your fancy new ultra-cool setup!