paint-brush
Install Visual studio code on Ubuntu linux by@xameeramir
2,651 reads
2,651 reads

Install Visual studio code on Ubuntu linux

by Zameer AnsariDecember 25th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

If you’re <a href="//xameeramir.github.io/install-asp-net-vnext-ubuntu-linux/" target="_blank">trying to work on&nbsp;.NET outside of Windows</a>, you <a href="//gzht888.com/tagged/probably" target="_blank">probably</a> be missing <a href="//www.visualstudio.com/" target="_blank">Visual studio</a>. A sub-alternative is <a href="//code.visualstudio.com/" target="_blank">VS code</a>.

Company Mentioned

Mention Thumbnail
featured image - Install Visual studio code on Ubuntu linux
Zameer Ansari HackerNoon profile picture

credit:

If you’re , you probably be missing . A sub-alternative is .

Now, we’re going to it on The contents of the extracted folder will look something like:

code is the executable file we’re interested in:

  • Double click code

For the sake of organisation, I have all the downloaded setups in a separate directory called Programs. Yes, inspired by

Running code everytime from it’s folder is too much work. To minimize it, we can using the command sudo ln -s /path/to/vscode/Code /usr/local/bin/code

In my case, I replaced /path/to/vscode/Code with ~/Programs/VSCode-linux-x64/Code so the final syntax is

sudo ln -s ~/Programs/VSCode-linux-x64/Code /usr/local/bin/code

In case of already created symbolic link, an error will be shown:

From next time, we can just open a terminal with Ctrl Alt T and type code

After installation, [dnvm](//stackoverflow.com/a/35031584/2404470) [dnu](//stackoverflow.com/a/35031584/2404470)  [.bash_profile](//stackoverflow.com/a/35031584/2404470) using the below commands:

echo 'source dnvm.sh' >> ~/.bash_profile echo 'export MONO_MANAGED_WATCHER=disabled' >> ~/.bash_profile
Verify that commands are actually added:
  • Go to Home in Files explorer

  • Unhide hidden files using Ctrl+H
  • Locate the .bash_profile file
  • Open it with gedit or your favourite editor

source dnvm.sh export MONO_MANAGED_WATCHER=disabled

Alternatively, [cat](//askubuntu.com/a/261902/219603) [less](//askubuntu.com/a/261902/219603) :

And VS code is ready to use:

Originally published at .

바카라사이트 바카라사이트 온라인바카라