Jeff Sanders Technical Blog

I am a Microsoft employee that has worked on all aspects of the Web Stack for a long time. I hope these blogs are useful to you! Use this information at your own risk.


<< Go Back

Install Visual Studio Code On Ubuntu 16 04 Lts

- 13 Oct 2017

I had trouble getting Visual Studio Code to install by simple clicking on the package from https://code.visualstudio.com.  Whether I tried do download or use Ubuntu Software to install this I got an error: status code 400: Bad Request.

Solution

Download the .deb package from the Visual Studio Code site, then right click on the desktop and open a terminal:

capture20171013144839126

Go to the Download directory.  Type cd Dow and hit the tab key to complete the directory name:

capture20171013144931211

Type ls to list the files in the Download directory and find the code_ package:

capture20171013145032064

Install the package with this command sudo dpkg –i code (and hit tab to complete the name):

capture20171013145404656

Provide your password and Visual Studio Code will install.

NOTE: if you get dependency errors when using dpkg with a package, simply type sudo apt-get install –f  which will download and install missing dependencies and configure them.

Now, find it and run it:

capture20171013145544701

And you can right click on the icon in the side bar (Launcher) and choose Lock to Launcher so you don’t need to hunt for it again!

capture20171013145638693

 

#

Conclusion

Just a quick blog to help you out.  If you find it helpful, please let me know!

Note:  You can kick of Visual Studio Code in a terminal window if you are command line guy like me by simply typing code in the terminal.

References

https://help.ubuntu.com/lts/serverguide/dpkg.html

https://www.digitalocean.com/community/tutorials/how-to-manage-packages-in-ubuntu-and-debian-with-apt-get-apt-cache

<< Go Back