Now it’s time to install VSCode Text Editor, a sophisticated text editor for code, markup, and prose.
To get started, download VSCode, and after it is installed, launch the application.
VSCode’s documentation is excellent. Review it now to familiarize yourself with the basics.
Open the Command Palette (⇧⌘P) and type ‘shell command’
Then, click the Shell Command: Install ‘code’ command in PATH command.
Restart the terminal for the new $PATH value to take effect.
Type the following command in your terminal:
git config --global core.editor "code --wait"
This command will not return any message unless there is an error.
To install Node, open your Terminal and copy and paste the following line, then hit Enter:
sudo apt-get install nodejs
Afterwards, you’ll want to install Node Package Manager (NPM).
sudo apt-get install npm
If you run into issues trying to install Node from these steps, please contact your instructor.
It will take a few minutes for the download and installation process to complete.
Now that you have Node installed, you can install Node packages using its package manager, NPM. Open your terminal and enter:
npm -g i eslint git-open
You should see a lot of feedback as it installs.
username@user $ code --version
1.40.2
f359dd69833dd8800b54d458f6d37ab7c78df520
x64
username@user $ git --version
git version 2.2.0
username@user $ node --version
v10.16.0
username@user $ npm --version
6.9.0
username@user $ eslint --version
v6.7.2
username@user $ tree --version
tree v1.8.0 (c) 1996 - 2018 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro
username@user $ echo $PS1
\[\e[36m\]\A\[\e[m\] \[\e[32m\]\w\[\e[m\] \[\e[37;40m\]`parse_git_branch`\[\e[m\]
username@user $ cat ~/.gitconfig
[core]
editor = code --wait
[user]
name = yourgithubusername
email = youremail
username@user $ code
//should open VSCode