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

300 questions
213
votes
13 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
  • 2,231
  • 2
  • 11
  • 5
182
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?
96
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,093
82
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…
43
votes
2 answers

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,185
30
votes
7 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?
26
votes
14 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
  • 632
22
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…
20
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
  • 493
18
votes
6 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…
14
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?
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…
14
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…
13
votes
2 answers

how to run and debug bash script from VSCode

How do I run and debug bash script from VSCode. I have this setup in my Ubuntu machine. Is there any way to configure so that when I say run it execute the bash script? I did install the bash debug extension but I get this…
kumar
  • 515
12
votes
3 answers

Unable to run sudo in VS Code Terminal

When trying to run commands as sudo, I get an error sudo: The "no new privileges" flag is set, which prevents sudo from running as root. sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the…
Siamore
  • 864
1
2 3
19 20