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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [visual-studio-code]

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

0
votes
1answer
50 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
25 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
27 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?
0
votes
1answer
47 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
61 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
22 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
143 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 ...
0
votes
0answers
136 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, ...
0
votes
2answers
302 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
42 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
198 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
155 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
46 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
47 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
70 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 ...
0
votes
0answers
63 views

VS Code on Ubuntu 18.04 doesn't have all Python snippets

I am a novice developer and my main OS is Ubuntu since 17.10. Now I'm using 18.04. In 17.10 only installing VS Code, all the snippets were available, but in the last release only the basics are. VS ...
1
vote
1answer
27 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
331 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 ...
0
votes
2answers
250 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 ...
0
votes
1answer
197 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 ...
1
vote
1answer
362 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
83 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 ...
1
vote
2answers
465 views

How can i compile c++ files through visual studio code

quick rundown: im completely new to Ubuntu, but not new to c++. I've coded on a windows machine before, but the constant crashing and slugish debugging forced me to switch up and install Ubuntu, I've ...
0
votes
0answers
25 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
117 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 ...
3
votes
4answers
1k views

Cannot open Visual Studio Code

I've installed VS Code on my laptop with Ubuntu 16.04 LTS. I've tried multiple installation method with identical results; mostly recently, I followed the "new" instructions from Cactux here. I've ...
1
vote
1answer
42 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
143 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
180 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
162 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
171 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
226 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
56 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
178 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
394 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
633 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
68 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
85 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
728 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
502 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
93 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 ...
0
votes
0answers
553 views

How to save root level files on Visual Studio Code?

On Sublime Text when you save root files like xorg.conf, the editor asks for your password to be able to save said file. VSCode just complains that it doesn't have the priviledges.
0
votes
0answers
464 views

Uninstall Visual Studio Code 32bit

I'm trying to install the 64bit version of Visual Studio Code but I can't figure out how to remove the 32 bit version first. I'm running Ubuntu 17.04. I tried: sudo apt-get purge code but that ...
0
votes
0answers
92 views

Shortcut conflict (Ctrl+`) between Ubuntu 16.04 and VS Code

I just installed Visual Studio Code and often use the integrated terminal. To toggle the display of the terminal you use the shortcut Ctrl+`. Whenever I use that shortcut, I receive a notification on ...
1
vote
2answers
3k views

How to uninstall visual studio code in Ubuntu 16.04

Installed Visual Studio Code (64bit deb package) using the gdebi installer, now I want to uninstall it properly. I tried the following to no avail - remove installation option in gdebi ----> does ...
0
votes
2answers
634 views

how to find the installing path of some install application? [duplicate]

I install (using the terminal setup command) Visual Studio Code. I can run it (by clicking on the icon on the 'all programs') but I can't find the installation path of it. I want to run it using ...
0
votes
1answer
1k views

connecting Visual studio Code C# to My Sql

I'm working on Ubuntu 17.04, i just installed Visual Studio code, C# and a debugger, the IDE is working very nice, in order to complete the development of the project i'm working on, i need to connect ...
4
votes
2answers
2k views

Does a snap for vscode exist?

The media is gushing about the snap package for Visual Studio Code, and how wonderful it is (apparently has a plug in that cures gout ;-). So I thought I'd give it a whirl. I dutifully typed: $ sudo ...
5
votes
1answer
916 views

Error installing Visual Studio Code as snap

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 ...