Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Browsing all 97288 articles
Browse latest View live

Prevent VSCode from putting stream methods after eachother for Java

The Java plugin for Visual Studio Code has some annoying formatting when putting multiple methods after each other. It likes to format my code like this.Item item = items.stream().filter(m ->...

View Article


Image may be NSFW.
Clik here to view.

VSCode in WSL: how to sudo a root file so I can edit it

WSL v.1 -- VSCode v1.40.1 (using 'Remote - WSL' extension 40.3)How to open a root-owned file for edit using sudo and VSCode?If I open a root file without sudo, I can't edit it (expected): $ code...

View Article


Why does vscode delete golang source on save

why can't save these line of code in vscode with golang extensionpackage app import ( "fmt" ) //this is just func func TestingHello(){ fmt.Println("Hissssss") } only the package app stays and remaining...

View Article

How to set the background color of the Find current line?

I successfully set the background color of the current line of the editor :{ "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe", "atomKeymap.promptV3Features": true,...

View Article

Visual studio code cmd error: Cannot be loaded because running scripts is...

Inside of visual studio code, I'm trying to execute a script.bat from the command line, but I'm getting the following error:File C:\Theses_Repo\train-cnn\environment\Scripts\activate.ps1 cannot be...

View Article


Image may be NSFW.
Clik here to view.

How to make VS Code read Python imports without displaying yellow squigglies?

I've fiddled with a problem, and have not been able to find a solution. VS Code will not recognize module imports, and thus put a yellow squiggly line under the functions, like this:These are on every...

View Article

Problems with libpcap - segmentation fault

I'm having problems with the libpcap function "pcap_findalldevs". The problem is when I run the code is gives a "segmentation fault". The code is:int listDevices() { int res = -1; int count = 1;...

View Article

Current working directory for jupyter notebook sets to temp folder in vscode

I'm trying to set current working directory (CWD) to edited file location for Jupyter Notebook in VS Code. I use ${fileDirname} in python.dataScience.notebookFileRoot setting. However it uses temporary...

View Article


Image may be NSFW.
Clik here to view.

Intellisense (VS Code) for Unity not working in Linux, requires .NET Dev Pack...

I've recently installed Unity 2019.2.12f1 on my Linux Cinnamon 19.2 machine, and got Visual Studio Code purely for the Intellisense feature. However, as with all Microsoft products, something went...

View Article


Image may be NSFW.
Clik here to view.

Visual Studio Code (Python) - 'NoneType' object has no attribute 'write'

I searched all the internet for a solution and didn't find it.Well, i recently installed Anaconda Package, and the VS Code with all the required extensions, but like in every language i tried to run...

View Article

VSCode Extension API - Can we add conditional context menus in Visual Studio...

I am developing an extension that contains a context menu on the explorer. I need to show these items based on a condition which involves complex logic. Is there a way I can achieve this?

View Article

VSCODE : Disable HTML Auto Closing Tags only for Javascript files

I'm using VSCODE to program my web apps using JQuery and when I want to work with divs and for example when I want to make a new div in JQuery, I write :$('<div> But VSCODE close instantly this...

View Article

How to create a directory in Visual Studio Code tasks.json in windows?

I'm trying to write a task to create a directory using Visual studio Code tasks (in tasks.json) for windows users using the mkdir command, it's working well except when the folder already exists....

View Article


How to add react dev tools to chrome when debugging in vscode

when debugging in vscode in "launch chrome" mode, raises a nice and clean chrome instance, without any extension installed. It is good, but in some cases I need react-dev-tools extension and have to...

View Article

How to disable horizontal scroll in visual studio code?

When I scroll with the touch pad with two fingers in Visual Studio Code, I often scroll to the sides a little by accident. This is a bit annoying. I'd be happy to have it scroll only up and down.

View Article


XDebugError: command is not available in Vs Code [closed]

While Debugging my Code with Xdebug and Vs code the following error is shown in the debug window XDebugError: command is not available at new Response...

View Article

Visual Studio Code URL links

We have installed VS Code on a server which has very restricted internet access. When attempting to open VS Code it hangs, resulting in a 'not responding' message.I suspect VS Code requires internet...

View Article


Visual Studio Code - Now approved by iOS... How to install? [duplicate]

This question already has an answer here:Visual Studio Code can't be opened because “Apple cannot check it for malicious software” 2 answersiOS report "Visual Studio Code can not open as Apple can't...

View Article

Excluding files from auto save (autoSave), in Visual Studio Code

I have just picked up the Visual Studio Code, and am not very familiar with how the settings should actually be. I have been trying to exclude a file type from Auto Save but I am not able to get this...

View Article

Visual Studio Code Remote SSH uses Windows username instead of username in...

I'm using Visual Studio Code on Windows 7, along with Microsoft's Remote SSH extension. I added new remote host, and saved configuration in ssh_config file.When I open that file, everything looks ok,...

View Article
Browsing all 97288 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>