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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [visual-studio-code]

Visual Studio Code is a cross-platform source code editor from Microsoft.

0
votes
0answers
11 views

In Visual Studio Code is there a way to recall regular expression searches

I'm coming from BBEdit where in the search and replace dialog there is a way to save complicated regex searches for later retrieval. Short of copying and pasting from a text file of regexp's, is there ...
0
votes
0answers
13 views

How well does Visual Studio Code support R? [on hold]

My impression is not very well, but I'd like to hear from anyone who is using, or has tried using, VSC for coding in R.
0
votes
0answers
16 views

Linux Visual Studio Code wonky in Windows

We have an unusual development environment. We're developing a Linux-based system, but our workstations are all Windows 10 boxes. We log into our Linux VMs via MobaXterm or similar tools. Some of us ...
0
votes
0answers
21 views

Where does gdb get installed to when using WSL in VS Code?

I'm using Visual Studio Code to write C and I'm using the WSL terminal. I installed gdb from the VS Code terminal to debug my code, but I have to change miDebuggerPath to gdb installation path. But I ...
0
votes
0answers
6 views

How to add YML files to my project using VSCODE? [migrated]

In my Java project when inserting a YAML file, I realize there is an exclamation point. When compiling using Maven commands, I can not find the YAML file inside the .jar file. I need this YAML to be ...
0
votes
0answers
7 views

Visual studio Code - Debian Installed on Windows Subsystem with Python and virtualenv

So I have Visual Studio Code installed on Windows 10 and I also have Linux Debian installed in the Windows Sub System. I wondering how I can create the code in Windows 10, using VSC, but have it "run" ...
0
votes
0answers
22 views

VSCode - sudo usage switches keyboard language

I'm on MacOS - Mojave with Code version 1.30.2 I'm experiencing som weird error in Visual Studio Code. I need to run it as super user / sudo because i have a ssh mounted directory and git running - ...
-3
votes
0answers
21 views

Visual Studio Code debugging error [on hold]

I just started learning Nodejs so I need visual studio code to debug and launch my code in Nodejs. However I cannot add "configurations" and when i attempt to launch debugger it gives me two errors 1 ...
1
vote
0answers
11 views

VSCode doesn't open Files imported with absolute PATH

I have a React Application. I am importing some components, and I want to click ALT+File name in the import in order to navigate to it.(Linux Ubuntu). Mapped it to Alt instead of CTRL. In files with ...
2
votes
1answer
54 views

How to disable PSScriptAnalyzer's PSAvoidUsingCmdletAliases in PowerShell Extension in Visual Studio Code

I'm using Visual Studio Code to write my PowerShell Scripts. I've installed the ms-vscode.powershell PowerShell Extension for Visual Studio Code. Whenever I use an Alias in my Script, the ...
0
votes
0answers
10 views

How to use a single task to compile everything in VS Code?

I'm trying to make my life easier by using a single task to compile and run all my files. I have this for c++: "label": "g++run", "type": "shell", "dependsOn": ["g++run:compile"], "command": "${...
1
vote
1answer
119 views

The terminal process command 'C:\Windows\System32\cmd.exe' failed to launch (exit code: 2)

Yesterday while working in VScode an error suddenly popped up: The terminal process command 'C:\Windows\System32\cmd.exe' failed to launch (exit code: 2) Now I cannot use the integrated terminal of ...
0
votes
0answers
18 views

How to disable collect usage data notification when vscode first starts?

Created docker image to encapsulate vscode editor and its settings to provide consistent development experience. Each time image is executed to create container and start editor (for the first time), ...
0
votes
1answer
51 views

How to suppress some Python errors/warnings in VS Code

I have upgraded my VS Code to the latest version, 1.30.0. Then it starts to complain about unresolved import. This is because my work uses docker, so docker image contains all the dependencies while ...
0
votes
1answer
311 views

Visual Studio Code - working with two sub-windows but making them not effecting one another?

Visual Studio Code (VSCODE to all you coming here from search engines) allows splitting the current working window into two windows: When I type text in one, it appears in the other. I desire that ...
0
votes
2answers
803 views

How to COMPLETELY uninstall Visual Studio Code from Windows 10

Seriously, its hyper frustrating that after 35 years making software, Microsoft doesn't knows yet how to uninstall a program I'm trying to uninstall Visual Studio Code, yes, this question is similar ...
0
votes
0answers
21 views

How to make Intellisense metadata persistent in Visual Studio Code

I'm using Visual Studio Code for C/C++ development (and I'm very happy with it). However, I'm working on huge C/C++ projects, which makes Intellisense work for a long time before getting all the ...
0
votes
1answer
33 views

VS Code on Windows: install python packages to the default directory

When i install extensions like pylint through the VSCode GUI (it tells me that it needs some package and asks me if i want to install it), it installs them to ... C:/Users/me/AppData/Roaming/Python/...
0
votes
1answer
22 views

VS Code stopped showing (some) images in Markdown preview

I currently keep all of my notes as Markdown files. Those files contain mainly links, and for some extra flair, I include the favicon of the site in front of them like this: # Git ## Tutorials - ![]...
2
votes
0answers
29 views

How to add ident to a block without reidenting it in Visual Studio Code

If I had a typescript file idented by 4 spaces with some SQL strings idented with 2 spaces. function ts_query(){ const sql=` SELECT * FROM table1 WHERE field1 IS NULL ...
2
votes
1answer
392 views

unable to associate .txt file with listed Visual Studio Code on Windows 10

I just installed Visual Studio Code 1.28.1, but I'm unable to associate it with the .txt extension on Windows 10. I'm well aware how to associate an extension with an application on Windows. I can ...
0
votes
0answers
15 views

Navigate to Typescipt type interface from [ts] warning?

I get a Typescript warning in VS Code: code: <video autoplay={true}> warning: [ts] Property 'autoplay' does not exist on type 'DetailedHTMLProps<VideoHTMLAttributes<HTMLVideoElement>, ...
0
votes
1answer
28 views

Tab key all the sudden creates <tab></tab> tags in .tsx files. How do I stop this?

Tab key all the sudden creates <tab></tab> tags in .tsx files instead of creating the tab whitespace character. Tab behaves normally in other file types and outside of VS Code. How do I ...
0
votes
0answers
57 views

How to use PHP installed in Windows 10 Linux subsystem on Visual Studio Code

I am facing a troublesome issue where I would like to use PHP in Visual Studio Code. PHP is installed to Linux Subsystem, because I liked the idea of having all my website stuff in one place. Now I ...
1
vote
1answer
27 views

Command Palette command to close the file browser panel.

The left panel (typically the file browser, but also extensions, debugging, etc) - takes up quite a bit of screen real estate. I'm searched through the command palette - but I can't find a command ...
1
vote
0answers
57 views

Why Visual Studio Code's Debug Console output is escaped and how to fix it?

Currently when I launch a program with LLDB debugger in Visual Studio Code, for some reason I'm getting escaped stdout output in VSCode's Debug Console. For example, my program outputs this: Playable ...
1
vote
1answer
75 views

Open file from VSCode file explorer using keyboard?

I have switched focus to the explorer using cmd+shift+E. I have selected a file in the explorer using the arrow keys. I have found that ctrl+enter opens the file in a new tab. How do I preview the ...
0
votes
0answers
22 views

Links open in Visual Studio Code

When I click a link, Visual Studio Code opens trying to create a file with that name. For example, if I click a link saying http://example.com/foo/bar, Visual Studio Code opens and tries to make a ...
0
votes
1answer
168 views

Enable word wrap for latex files only in vscode

I want Visual Studio Code to "word wrap" latex files automatically, but leave other files as they are. How do I do this?
0
votes
1answer
47 views

Text Editors Appending Text on Save When Characters Deleted

When I delete text from a text file on a Windows PC with a most text editors, extra bytes get appended to the file. This happens when I edit a file on my FAT32 thumb drive or on a spinning-disk USB ...
1
vote
1answer
22 views

Is there a keyboard shortcut to open up Outline search or Quick Outline in Visual Studio Code?

Is there a keyboard shortcut to open up Quick Outline in Visual Studio Code? This is useful to go to a definition quickly. In Eclipse it's called Quick Outline and you use Command + O to open it. ...
0
votes
0answers
201 views

Disable Visual Studio Code middle mouse select

I'm using VS Code on Ubuntu 14.04. Is there a way to make clicking+dragging with the middle mouse button not select anything? Maybe my scroll wheel is a bit too sensitive, but I sometimes find myself ...
0
votes
0answers
18 views

Visual Studio Code - folded code expands on paste

In VSCode (and I think it's also relevant for VS), when a few lines of code are folded from the gutter (i.e: a function section), then copied (CTRL+C) and then pasted (CTRL+V) somewhere else, the code ...
0
votes
0answers
24 views

Hide inline svg in Visual Studio Code

Is it possible to hide the definition of inline SVG in Visual Studio Code with one click? This is strictly to keep code clean. I mean, hundreds of lines of svg really quickly leads to unreadable ...
0
votes
0answers
32 views

How to Sign Into Git In Visual Studio Code?

I'm currently working on a project, and I decided to switch from Atom to Visual Studio Code just to try it out. I staged a file, committed it and pushed through VSC. But my actual name is being used ...
0
votes
0answers
70 views

How to remove Multiple Whitespace/Endline from Multiple Files in Visual Studio Code?

I can able to do the find and replace for a single file by putting ^\s*$\n and replacing it with nothing. But Visual Studio Code is not allowing the same for multiple files. Literal '\n' is not ...
0
votes
1answer
73 views

Edit Google Keep notes thru GhostText w/ advanced text editor?

I tried to edit my Google Keep notes with Visual Code via GhostText... it is doable if you set the .tmp extension given by GhostText to use html syntax. And do a few additional steps: Format the ...
0
votes
0answers
101 views

How to change font of captions in Visual Studio Code?

It's easy to change editor's font. But how to change font (size) of captions using in Visual Studio Code? For example, captions "TERMINAL", "PROBLEMS", "OUTPUT", etc tabs in integrated terminal have a ...
0
votes
1answer
131 views

Visual Studio Code - printf, scanf, perror, etc - red squiggly underlines

Despite my code compiling and executing fine, the first occurrences of printf, scanf, perror, etc (i.e members of stdio.h) have red squiggly underlines, as does stdio.h itself. Why does my code ...
2
votes
2answers
2k views

How to use Terminus (TTF) font in Microsoft Visual Code Editor

I'm successfully using Terminus TTF font in Visual Studio. I downloaded: https://files.ax86.net/terminus-ttf/files/latest-windows.zip How to use Terminus font in Visual Studio Code? What is the name ...
3
votes
2answers
584 views

How do I change Markdownlint settings in Visual Studio Code

The Markdownlint plugin in Visual Studio Code is raising an MD007 error. I'd like to update the setting but can't work out how to find the options.config referred to in the markdownlint documentation?...
1
vote
2answers
983 views

How to copy code from Visual Studio Code to OneNote with indentation?

OneNote does not have code highlight function, but when i paste code form VS Code, code's highlight can be retained without indentation. I wonder is there any way to copy code to OneNote with ...
0
votes
0answers
136 views

Eclipse's Ctrl+k equivalent in Visual Studio Code

I am trying to use Visual Studio Code for my php projects. Coming from Eclipse I really miss Ctrl+K command which jumps to the next occurence of the same word and Ctrl+Shift+K goes to the previous. Is ...
2
votes
2answers
2k views

Windows 10 - How do I set Visual Studio Code as my default HTML editor?

Chrome is set as my default browser and it opens .htm files by default. However, when I right-click an .htm file to open it for editing, Dreamweaver launches and opens the file. How do I set Visual ...
0
votes
0answers
146 views

Use capslock or windows key in visual studio code

When using the CapsLock, Windows or Alt+             in Visual Studio Code shortcuts they do not prevent the default behavior of those keys. ...
0
votes
1answer
2k views

Visual Studio Code is consuming all my RAM

I have a Dell Inspiron 15 laptop with a Core i5 7th Generation along with 4GB DDR4 2400MHz. The OS is Windows 10 Home Single x64 (Build 15063). Most of the tasks being performed on that laptop are ...
0
votes
2answers
822 views

Font 'rendering' issue in Visual Studio Code

After installing Visual Studio Code (Version 1.17.2) x64 on Debian-Sid Xfce version 4.12.1 along with Openbox. I noticed these strange 'rendering' issues with fonts: screenshot #1 screenshot #2 ...
1
vote
1answer
749 views

How to prevent VS Code from opening multiple instances of a same file?

VS Code someone point me to an existing opened file, other times it create a new instance (of VS Code as well as the file).
0
votes
1answer
1k views

How to create a Hyperlink inside Visual Studio code, which when clicked will bring me to the linked part inside the same file

How to create a Hyperlink inside Visual Studio code, which when clicked will bring me to that linked part (other portion) inside the same file? Example: Page 1 -> when clicked will bring me to the ...
3
votes
0answers
1k views

Visual Studio Code column mode paste

I can select a column in MS Visual Studio code with shift-alt and drag, but how do I paste a column? I can't find that anywhere. The column mode options on the keyboard cheat shortcuts list do not ...