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
0answers
9 views

Ubuntu 16.04 makes laptop lag when react dev server is running on VS code

When I am using VS Code to develop and run two react applications and two simple node express apps even scrolling inside IDE is lagging (Everything else in laptop lags). When I do the same on Webstorm ...
0
votes
0answers
35 views

vs code icon not showing in activities bar Ubuntu 18.10

this is my screen shot vs code is running but in left side bar its not showing how to fix this issue? and i download from here and vs code version 1.29
0
votes
0answers
30 views

Problem updating VS Code in Ubuntu 16.04 LTS [duplicate]

I face this issue when updating my VS Code. I have posted what I obtain in my terminal after running sudo apt-get update and sudo apt-get install code below: [10:04:28] dyufenyuy@Synepsys-Yufenyuy:~$ ...
1
vote
1answer
139 views

vscode activity titled 'Visual Studio Code - URL Handler'

I am fairly new to ubuntu and I uninstalled previous VS Code and reinstalled using the linked article since the one installed using software tool was not updating. https://linuxize.com/post/how-to-...
1
vote
2answers
365 views

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?
0
votes
1answer
43 views

Local Workspaces Permissions Management and GitHub Integration

I have a folder ~/workspaces where I place all my local repositories from GitHub and other coding projects. I use VS Code and have had permissions problems since I installed Ubuntu a month ago. I ...
1
vote
4answers
249 views

VS Code not showing top menu bar Ubuntu 18.10

I just install VS Code to my Ubuntu 18.10 distro but after installation top menu bar isn't visible on VS Code. What can i do??
0
votes
0answers
19 views

The following packages have unmet dependencies: Depends: libnss3 (>= 2:3.26) but 2:3.21-1ubuntu4 is to be installed

I am trying to install visual studio on ubuntu 16.04. But when I execute the instructed command steps in here i get the above error and unable to install it. The command steps I followed : 1. curl ...
0
votes
1answer
51 views

VS Code takes very long to open

If is use code . in terminal or just open vs code from menu, it is taking almost 15 to 20 seconds to open. I'm using Ubuntu 18.10 in Ideapad 100 with i3 5005u 8GB ram and SAMSUNG 850 evo 250GB ssd.
0
votes
0answers
94 views

Problem with Installation of Microsoft VSCode

I was trying to install Anaconda 3 in Ubuntu 18.10. At one point the terminal prompted me to install Microsoft VSCode. When I proceeded, the terminal informed me that there is an issue with the ...
0
votes
0answers
36 views

How to add php website files to XAMPP? [duplicate]

Ubuntu newbie trying to migrate from Windows. I installed XAMPP, the installer placed the files in /opt/. I am trying to add my own work and after some digging I found that XAMPP serves files from ...
0
votes
1answer
43 views

Want to make VSCode always start with `--disable-gpu` option, from everywhere, e.g. gnome dock

Is there a config file like .vscoderc or something I can use to persistently store the --disable gpu flag, such that vscode always starts with this flag enabled, no matter from where (or from which ...
4
votes
1answer
122 views

VSCode overrides default HTML viewer

I want my default application to open .html files to be Chrome but on Ubuntu 18.04 every time I open vscode it overrides my set default. Not sure how to enable this permanently, does anyone know how ...
0
votes
1answer
58 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
130 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
22 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
39 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
263 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
236 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
17 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
3answers
481 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 ...
1
vote
1answer
411 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
706 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
1answer
360 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?
3
votes
2answers
2k 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
69 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
417 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
854 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
1k 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, ...
4
votes
4answers
2k 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
93 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,...
2
votes
2answers
1k 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
366 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
143 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
59 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
177 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
35 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
640 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
1k 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
409 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 ...
4
votes
1answer
1k 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
163 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
3k 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
33 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
315 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 ...
7
votes
7answers
6k 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
60 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
222 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
346 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
312 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": [ ...