Questions tagged [visual-studio-code]

Visual Studio Code is a free, cross-platform, open source code editor provided by Microsoft.

Visual Studio Code is a streamlined code editor with support for development operations like debugging, task running and version control. It is provided by Microsoft. More details can be found in the FAQ.

For information on how to install Visual Studio Code in Ubuntu, see this question: How do I install Visual Studio Code? Microsoft also provides a support page on how to use Visual Studio Code in Debian-based Linux distributions (including Ubuntu) here.

Visual Studio Code homepage

273 questions
178
votes
12 answers

How can I update Visual Studio Code on Ubuntu?

I downloaded the .tar.gz version of VS Code for Ubuntu (64-bit) and have been able to run it smoothly for some time. Some extensions have been installed too. How can I efficiently update this VS Code installation? One thing I can think of is to just…
ramcrys
  • 1,881
  • 2
  • 9
  • 5
178
votes
12 answers

How do I install Visual Studio Code?

I just downloaded VSCode-linux-x64 from the Microsoft website. It's a 62 MB zip file. How can I install it on my Ubuntu system?
Rasool
  • 1,904
  • 2
  • 12
  • 8
90
votes
3 answers

How to run Visual Studio Code as root

I recently installed Visual Studio Code editor. I downloaded the 32bit .deb package. Installed and run normally, but when i tried to save a file in my project folder, it returns permission denied. So, i re-run code with sudo code . and it…
wdarking
  • 1,033
  • 1
  • 8
  • 9
77
votes
2 answers

How To Open Visual Studio Code Using Terminal

Recently I downloaded visual studio code which operates as text editor but I can't figure out how to open code file from terminal. When I use Sublime Text the command is subl, so when I run subl newFolder.c it would automatically open Sublime Text…
Giorgi Cercvadze
  • 871
  • 1
  • 6
  • 3
33
votes
1 answer

What is the classic mode of snap, and why do some snaps not install without it (e.g. MS Visual Studio)?

I tried to install MS Visual Studio Code as snap on Ubuntu 16.04 with the following command: sudo snap install vscode but I've got the following error: error: This revision of snap "vscode" was published using classic confinement and thus may…
Danibix
  • 2,047
  • 2
  • 18
  • 27
26
votes
13 answers

VS Code causes 17.10, 18.04 randomly and completely freeze

Please read: See the last bit. I don't believe this is an issue related to Ubuntu, but rather VS Code. Recently, under 17.10 and 18.04 (I just upgraded today), Ubuntu will randomly and completely freeze. I cannot move the cursor or use the keyboard.…
jhpratt
  • 622
  • 1
  • 8
  • 19
21
votes
6 answers

Add open with VS Code to context menu in Ubuntu

In windows, we have an option: adding "Open with code" action to context menu, this allows us to open any file or folder with VS Code. Is there any way to add this feature in Ubuntu?
Gitik Kaushik
  • 231
  • 1
  • 2
  • 4
21
votes
9 answers

Cannot open Visual Studio Code

I've installed VS Code on my laptop with Ubuntu 16.04 LTS. I've tried multiple installation methods with identical results; most recently, I followed the "new" instructions from Cactux here. I've tried opening the application two ways to no…
Adam Hoelscher
  • 313
  • 1
  • 2
  • 9
17
votes
5 answers

Why does Visual Studio Code work slow in Ubuntu?

I have installed Ubuntu 18.04 LTS I used to use Visual Studio Code for my projects but the problem is that it is very slow. It hooks or locks, I do not know how to put it so that they understand me, because I use the translator and I do not know…
Miguel Espeso
  • 775
  • 2
  • 9
  • 25
14
votes
4 answers

Change default terminal back to Bash in VS Code

I installed zsh in my Ubuntu 18.04 but didn't like it. After installing it I was having issues, so I removed it. The default terminal in my VS Code has not changed back to Bash for some reason. Whenever I open the inbuilt terminal, an error message…
12
votes
3 answers

Visual Studio Code UI is visually mismatched in Ubuntu 19.10

The VS Code UI has been changed in 19.10 and it's not good as it was in 19.04 and earlier. The menu bar in VS Code deviates from the Ubuntu 19.10 system theme, and it has a disconcerting white background instead of being dark. The VS Code UI also…
Ericgit
  • 373
  • 4
  • 11
12
votes
4 answers

Is there an integrated terminal option in file managers such as Nautilus in Ubuntu?

Is there a way I have an integrated terminal within a file manager in Ubuntu (like the way terminal opens up with VSCode) so that when I trigger this inbuilt terminal from any folder, it shows the prompt in the same window. For example: VSCode…
Rahul
  • 385
  • 3
  • 12
11
votes
2 answers

Can I check if the terminal was started by Visual Studio Code?

I have a script which runs whenever I open the terminal (I put the command in .bashrc). Now when I open Visual Studio Code the script is obviously also executed in the internal terminal therein. I don‘t want this to happen. Is there any way to…
MichaelTheSlav
  • 111
  • 1
  • 3
10
votes
3 answers

Waste of Screen visual studio code

In Visual studio code, there is screen wastage. Is there any solution to merge menubar and titlebar with the shell?
praful Vanker
  • 101
  • 1
  • 3
10
votes
3 answers

visual studio code menu bar not visible in ubuntu18.10

When I install visual studio code on ubuntu18.10 it's menu bar is not visible. what may be the problem and how can I make it visible?
1
2 3
18 19