Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [visual-studio-code]

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

0
votes
1answer
33 views

VS Code internal error

I'm getting a bizarre error seemingly out of the blue. A google search came back empty. I'm stumped here. Running Ubuntu 18.04: code . internal error, please report: running "vscode" failed: cannot ...
4
votes
0answers
85 views

Set virtualenv for file in Visual Studio Code python

I'm playing with Visual Studio Code on Ubuntu. One big problem is I can't figure out how to attach a virtualenv to a file. So, I open the file. On the lower left corner, I see the default path to the ...
0
votes
0answers
16 views

What is the alt+shift+drag shortcut and where can I disable it?

I have discovered that the alt+shift+drag shortcut in VS code does not work, and instead moves my window. I have tried in other apps too, and they move the same way, but I didn't find where I can ...
1
vote
0answers
13 views

How to I configure the home.java variable for vscode in ubuntu 16.04?

In Eclipse, java development is seamless and works just fine. However, Visual Studio Code doesn't seem to recognize the java installation and demands that you manually input its whereabouts. I've had ...
1
vote
1answer
91 views

Depends: libnss3 (>= 2:3.26) but 2:3.21-1ubuntu4 is to be installed

I'm trying to install Visual Studio Code on Ubuntu-Desktop 16.04 LTS with command sudo dpkg -i code_1.27.2-1536736588_amd64.deb but it has some dependencies: code depends on libnss3 (>= 2:3.26)...
2
votes
1answer
71 views

Visual Studio Code doesn't start anymore

I'm completely new to Linux and wanted to experiment a little, so I don't really know what I'm doing. I am on working Ubuntu 18.04 and I have been unable to get Visual Studio Code to start again, ...
0
votes
0answers
14 views

Using Visual Studio Code for C++ doesn't work [duplicate]

Pressing Ctrl+F5 doesn't output anything. Can you help me please ?
0
votes
1answer
209 views

Trouble with installing vs code

I am keep getting error while installing vs code with anaconda on Ubuntu 18.04. The error is Installing Extensions ... Server returned 503 Unable to install python extensions for VSCode! Check ...
0
votes
1answer
153 views

Ubuntu 18.04 screen freeze and crashes every time I launch Visual Studio Code

I updated Ubuntu 14 days ago and have been using it trouble free for that time - in the last 24 hours though my screen would freeze and crash every time I was working with VS Code. I've seen other ...
0
votes
1answer
288 views

Cannot find runtime 'node' on PATH. in Visual Studio Code running installed on Ubuntu 18.04

I want to debug my Node.Js code in visual studio code. when I add break point and starts debugging it gives me error "Cannot find runtime 'node' on PATH". I am runnimg VS Code in ubuntu 18.04. Can ...
0
votes
0answers
34 views

How to recover code from an overwritten js file

I was working on the main.js file from my project. I left and when I came back I noticed that the whole file was empty! This is very wierd since a moment before I ran the file (with nodemon) and ...
0
votes
1answer
141 views

How to run Visual Studio Code as root without --user-data-dir argument?

I can run VS code with following command sudo code ~/.zshrc --user-data-dir="/root/.vscode" But it annoyed me. How do I config it so I can run VScode as root without --user-data-dir argument?
1
vote
2answers
494 views

Problem installing Visual Studio Code on Ubuntu 18.04.1 (not found libgconf-2-4)

I'm trying to install VS Code into a Ubuntu 18.04.1 but system can't found libgconf-2-4. > sudo dpkg -i code_1.25.1-1531323788_amd64.deb Selecting previously unselected package code. (Reading ...
0
votes
0answers
64 views

How to make Visual Studio Code (or any application) look for dependencies in a different, mounted partition?

I want to compile a large code base using Visual Studio Code but I don't want to install the dependencies (that I obtain them through apt-get or pip) of that code base on my laptop. Instead, I have ...
0
votes
1answer
202 views

How add extensions to Visual Studio Code through command line?

It is possible to compile Visual Studio Code and install it through terminal as explained here and here. Now I wonder, does anyone know how is it possible to install/add extensions to Visual Studio ...
0
votes
1answer
493 views

Visual Studio Code wont launch after installing

>NOT ABOUT SNAP VERSION< Installed Visual Studio Code via terminal using the instructions here: https://code.visualstudio.com/docs/setup/linux I didn't do the sudo dpkg -i <file>.deb and ...
1
vote
1answer
642 views

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, ...
2
votes
4answers
1k views

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 ...
0
votes
0answers
77 views

Visual studio code can't run

I have problem with running a Visual studio code on my Ubuntu 18.04, xps, dell 15" 9560. I managed to install it from snap store and I remember it worked well until installed few plugins like lint,...
1
vote
2answers
621 views

Add open with vscode 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 vscode, is there any way to add this feature in Ubuntu?
0
votes
1answer
307 views

Facing problems while installing Visual Studio Code on Ubuntu 18.04

These errors are showing while installing Visual Studio Code. dell@Mittal:~/Downloads$ sudo dpkg -i "code_1.24.1-1528912196_amd64(1).deb" Selecting previously unselected package code. (Reading ...
0
votes
1answer
90 views

Using VS Code with Chromium Snap

I'm trying to get VS Code debugging of a React client app working where Chromium is the Snap package. I think I have everything configured properly except that I don't know how to tell VS Code how to ...
0
votes
0answers
54 views

VLC player is not starting

In my ubuntu 16.04 Visual studio code was not starting. So from this suggestion i have applied this command sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1 But now ...
1
vote
1answer
141 views

A Javascript error has occurred in the main process VSCode

It was working fine before and all of a sudden I the toolbar relevant to VSCode wasn't showing up at the top of my screen so I decided to close VSCode but now this is happening. I've been getting it ...
1
vote
1answer
30 views

CLI command being overridden? visual-studio-code is installed alongside sublime text but the CLI command `code` only opens sublime

I am trying to give visual-studio-code a go to see if it would be a good code editor for me. So I have it installed. However, I also already had/have Sublime Text 3 installed. I cannot for the life ...
0
votes
1answer
502 views

VSCode installed with Anaconda on Ubuntu 18.04 LTS does not open, permission denied error [duplicate]

I just installed VScode with anaconda on Ubuntu 18.04 and after installation it won't open. I did the same on Ubuntu 16 LTS but it worked fine. I tried to uninstall it from anaconda navigator and ...
1
vote
2answers
800 views

Required to enter password every time I want to save a file in VSCode

As I read around from a few threads here. I shouldn't run VSCode as root because it is dangerous. But every time I hit CTRL+S, I need to go down to the bottom right and click run as administrator and ...
1
vote
1answer
297 views

Is there an official maintained vscode snap available from microsoft on Ubuntu 18.04 LTS

Is there an official maintained vscode snap available from microsoft on Ubuntu 18.04 LTS? After reading the following link, I searched the snap repo for an official snap. But did only find what I ...
2
votes
1answer
811 views

Running Script made in Visual Studio Code (on windows) on WSL Ubuntu returns “line 2: $'\r': command not found” [closed]

When I try to run a script made with Visual Studio Code on Windows in my Ubuntu WSL installation, I get the error: line 2: $'\r': command not found I ran into the question below: How do I fix "...
0
votes
1answer
135 views

Launching multiple VS code editor on ubuntu 18.04 crashes the Reactjs code

Ubuntu 18.04, Visual studio code 1.23.1, React JS programming When i launch 2 instances of VS code and try to run my Reactjs code on any one instance, ReactJS code crashes immediately. This never ...
3
votes
2answers
2k views

How can i compile C++ files through Visual Studio Code

Quick run-down: I'm completely new to Ubuntu, but not new to C++: I've coded on a Windows machine before, but I switched to Ubuntu Now I've installed VS code on Ubuntu as well as the C++ extension ...
0
votes
0answers
29 views

How to list all specified characters in vs?

In vim edited file ,the function can list all specified characters with red color. function! CheckMark() hi! ChineseMark ctermbg=red guibg=red match ChineseMark /[\u3000\uff01-\uff5e]/ ...
0
votes
1answer
189 views

vscode code navigation “Failed to get sources.”

I am using VSCODE to develop codes in Java with "Java Extension Pack". I encountered the issue that the code navigation of vscode doesn't work as expected. Previously, I can use "Ctrl+Click"(please ...
6
votes
7answers
4k views

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 ...
1
vote
1answer
54 views

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‘...
0
votes
1answer
176 views

GUI Debugging server app using Visual Studio Code

I've been tasked with getting a GUI Debugger working for project being developed for Ubuntu 16.04 server in C++ 11.0 with BOOST. I've got the app building and running on 'headless' Ubuntu 16.04 ...
0
votes
0answers
246 views

Using ironpython in Visual studio code

I am a beginner to programming, I need to use ironpython to execute my code. What I did till now is I wrote my complete code in python and executed it with zero errors. Now I wish to change my ...
0
votes
0answers
256 views

Needed: working source code of c_cpp_properties.json in VS code for ubuntu 16.04

Can someone post their working source code with all the includePath working properly? By mistake, I copy pasted the proper one for Windows XD. Goes something like: { "configurations": [ ...
1
vote
1answer
239 views

Visual Studio Code 32bit will not load Ubuntu Mate 17.10.1

I am a neophyte Linux User, but experienced Windows (C#) developer who is trying to learn this platform. I have Ubuntu Mate 17.10.1 installed on an older 32bit machine, and have added Visual Studio ...
0
votes
0answers
248 views

how to install visual studio? [duplicate]

sudo dpkg -i code_1.20.0-1518023506_amd64.deb [sudo] password for wolfubuntu: (Reading database ... 189470 files and directories currently installed.) Preparing to unpack code_1.20.0-1518023506_amd64....
0
votes
1answer
57 views

Transferring Python code from Sublime Text to Visual Studio code

When I transfer code (copy, paste) from Sublime Text to Visual Studio Code I get indentation errors while indentation looks fine. Even if I delete the indentation and retype it in Visual Studio Code I ...
0
votes
1answer
219 views

Can't use go in Visual Studio Code terminal

I have the latest versions of Visual Studio Code and Go compiler. When I am trying to build file in Visual Studio Code terminal using go build [FILENAME] I get this output: The program 'go' can be ...
0
votes
0answers
421 views

Visual Studio code not installing in ubuntu 16.04?

I have downloaded Visual Studio from this link. When I try to install it is not installing. I tried to install in software center but it is not installing. I tried with umake web visual-studio-code ...
-1
votes
1answer
840 views

IDEs for running C# programs in Ubuntu [closed]

Which is the better option for running C# programs in Ubuntu? using Mono and compiling in the terminal Microsoft Visual Studio Code Microsoft .NET SDK.
0
votes
0answers
91 views

VSCode cannot launch in ubuntu14.04 with vnc access

I have Visual Studio Code installed in Ubuntu 14.04 by using .deb file here: https://go.microsoft.com/fwlink/?LinkID=760868 . The Ubuntu machine is a VM with GNOME desktop and tigervnc-server, I can ...
0
votes
0answers
88 views

VS Code from store starts Mozilla Crash Reporter on update

I have found a bug and have no idea where to report it, but thought maybe someone has a solution here. I freshly installed Ubuntu 17.10 with all updates. Then, I went to the Software app, and ...
0
votes
1answer
782 views

Visual Studio Code sometimes wont load

I have no idea what's causing it, but sometimes Visual Studio Code just won't launch on Linux. This is on Ubuntu 17.10, but the issue was also present in Ubuntu 17.04. I'm running VS Code 1.18.1. ...
1
vote
0answers
37 views

Open Visual Studio Code as sudo every time? [duplicate]

I got an error message today when opening VS code as sudo/root, "It is recommended not to run Code as 'root'." THis seems so stupid, Visual Studio code is an IDE, an IDE is used to editing files is ...
1
vote
1answer
751 views

How do I uninstall a Visual Studio Code extension without using the GUI?

I installed an extension that was making Visual Studio Code extremely slow, by maxing out all cores and slowing the system down to a crawl. How can I uninstall it and make Visual Studio Code usable ...
0
votes
0answers
98 views

Copy as RTF not working in Sublime Text or Visual Studio Code

Sublime Text: https://github.com/n1k0/SublimeHighlight Visual Studio Code: https://github.com/atian25/vscode-copy-syntax Whenever I copy my code as RTF and paste it into any other document using ...