Visual Studio Code Setup
Introduction
Visual Studio Code is a lightweight but strong source code editor that runs on your desktop. Additionally, it provides built-in support for JavaScript.
This guide walks you through installing Visual Studio Code
Prerequisites
In order to begin this guide, you must have completed the following:
- [Getting Started with GitHub]
- [Vercel Setup]
What You’ll Do
- Install Visual Studio Code
- Add extensions
TUTORIAL
Install Visual Studio Code
/video
Download Visual Studio Code - Mac, Linux, Windows
You should see this screen. Click directly on the blue download arrows depending on your system type proceed to the next step.
Windows
In the bottom left side of your screen, you should see the VSCodeUserSetup install. Upon completion, click on it.
Next, select the ‘I accept the agreement’ option, and click on ‘Next >’.
Click ‘Next >’.
Click ‘Next >’.
If you prefer to have a Visual Studio Code desktop icon, check the box next to ‘Create a desktop icon’. Otherwise, verify that ‘Add to PATH (requires shell restart)’ is checked, and then click ‘Next >’.
Click ‘Install’.
Verify that ‘Launch Visual Studio Code’ is checked, and then select ‘Finish’.
Mac OS X
Navigate to VS Code official download website
Open the associated zip file in the downloads bar of your browser
Drag Visual Studio Code.app
to the Applications folder, making it available in the macOS Launchpad.
Optional: Add VS Code to your Dock by right-clicking on the icon and choosing Options
, Keep in Dock
.
After installing the VS Code, we can also configure the code to open from a command line, and it is pretty easy for us to do that.
- Launch Visual Studio Code.
- Open the Command Palette (⇧⌘P) and type ‘shell command‘ to find the Shell Command: Install the ‘code’ command in the PATH command.
Restart the terminal for the new $PATH
value to take effect. You'll be able to type 'code .' in any folder to start editing files in that folder.
code .
Extensions to Consider Adding to VS Code
- Solidity
- Truffle for VS Code (ConsenSys)
- DotENV (crucial for smart contract dev when messing around with private keys)
- Quokka.js
- Tailwind CSS IntelliSense
- Prettier
- indent-rainbow (really helpful for seeing what code lines up with what)
- CodeSnap
Further Resources
Getting started with Visual Studio Code | Visual Studio Code