In this blog post, we show you how to setup or install Visual Studio Code on windows system and then how to add solidity extension to that.
This is third post of series where we discuss about setting up development environment for Ethereum that we need before we start with smart contract development. Click Post 1 and Post 2 to go over the first and second post where we discuss about installation of NodeJs and Git.
Let's see how to Install Visual Studio Code on windows.
If you prefer to watch video then go over below video and see the Visual Studio Code setup.
Watch Video- How To Install Visual Studio Code on Windows
We have two options to setup Visual Studio Code on windows as mentioned below.
- Using chocolatey
- Using direct window installer
Let's go over these options one by one.
This is recommended option from our end but before we setup Visual Studio Code, we need to install chocolatey on windows system. You can skip below step if chocolatey is already installed on your system.
To Install chocolatey visit below link and go to "Install with cmd.exe" section.
Now run below command as given on above link on window command prompt.
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
This command install chocolatey on window system. Now let's see how to install Visual Studio Code on windows using chocolatey, for that run below choco command and that will download and install Visual Studio Code on the system.
choco install VisualStudioCode -y
Wait for some time and Visual Studio Code gets installed on the system.
Using direct window Installer
Go to below link and download the window installer. Run that executable file and choose default option.
Add Solidity extension to Visual Studio Code
Once Visual Studio Code is installed then open that and go to "Extension" Icon and search solidity extension and then click on Install to install that.