Skip to main content

Questions tagged [visual-studio-code]

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

5 votes
3 answers
31k views

How to recover unsaved file within Visual Studio Code?

VS Code crashed without saving - how do I get back the code contents? I've already checked, but didn't find the file: %AppData%\Code\Backups
0 votes
1 answer
6k views

Localhost ERR_CONNECTION_REFUSED

So I'm trying to load my localhost file. I am guilty of modifying my host file I was wondering if anyone could tell me if any of the following could be the issue. 127.0.0.1 localhost ::1 localhost ...
0 votes
0 answers
17 views

Visual Studio Code very slow and crashing on Parallels Ubuntu VM

Today I created an Ubuntu virtual machine under Parallels on my Macintosh. I installed Visual Studio Code into it. It appeared to run normally, although I had no content to try it on yet. I installed ...
0 votes
2 answers
902 views

Copy output from output window in vs code

I've a big output that I want to copy but right click->copy only copies a single line.
0 votes
0 answers
47 views

`screen` takes forever to execute in a certain terminal over ssh

I have a weird issue with screen where it takes 10+ seconds to execute any command, even screen -v: $ time screen -v Screen version 4.09.00 (GNU) 30-Jan-22 ...
3 votes
1 answer
22k 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 ...
0 votes
0 answers
101 views

vscode wont launch on macos

Yes, I know there are a lot of questions on this topic but I have tried everything but VSCode still doesn't open in macOS. I am using VSCode version - 1.91.0 (x64) This is what code --verbose prints ...
1 vote
1 answer
32 views

How to omit red parentheses highlighting in .txt files in Visual Studio Code?

When writing a .txt file in VSC, a stand-alone parenthesis will be highlighted to mark that it's missing its opposite. How can I disable the highlighting?
0 votes
0 answers
10 views

Python fedora Visual Studio Code ( can't open file [Errno 2] No such file or directory )

I installed via rpm (not flatpak) visual studio code on fedora and cant run anything as simple as print("hello") because it says: /bin/python: can't open file '/home/andre/code/print(hello)....
1 vote
1 answer
149 views

How to select discontinuity (not continued/separated/not in range) text in Visual Studio code?

create code fences with backticks ` or tildes ~ like so add language identifier to highlight code def function(foo): print(foo) put returns between paragraphs for linebreak add 2 spaces at end ...
0 votes
1 answer
4k views

How to find path to vscode in Linux?

I'd like someone to help me with finding path to executable vscode in POP_!OS. I tried look in /usr/bin, i tried whereis code and which code, nothing worked and i'm still stuck. Thank you so much.
6 votes
1 answer
10k views

How to list (search) files with a certain name

i'm trying to get a list of all the files with a certain name in a project i opened with VS Code. For example, all the .gitignore files in my project. I know i can ctrl+p and type ".gitignore&...
7 votes
1 answer
12k views

Visual Studio Code: Updates are disabled because you are running the user-scope installation of Visual Studio Code as Administrator

I run my Visual Studio Code using "Run as Administrator" While Visual Studio Code is open I get this message: Updates are disabled because you are running the user-scope installation of ...
0 votes
0 answers
33 views

Does VScode load text-based log files completely into memory when opening over SMB shares?

In the future, I need to access log files over SMB tunneled through OpenVPN and those log files might be pretty large. Downloading all of the log files content to show it might take a long time. I ...
23 votes
5 answers
42k views

How to see diff of each commit with Visual Studio Code?

I've been trying to move over to Visual Studio Code from WebStorm but WebStorm still has this one killer feature that I can't see how to do in Visual Studio Code. I can quickly pull up a list of my ...
5 votes
2 answers
7k views

I am not able to type a space with spacebar, instead of that I have to press shift+spacebar

Recently I updated my VScode and changed some font settings of it. When I start editing my code I was not able to add a space with the help of the spacebar instead of that I have to press shift+...
0 votes
1 answer
11 views

There is no "Move to file" refactoring option

I saw VS Code supports Move to file refactoring since version 1.82 But why there is no this option when try to move a TS interface to an existed file? VS Code: 1.90.2
-1 votes
0 answers
25 views

auto close tag in VSCode XSLT/XPath extension

I am new to using VSCode together with the extension XSLT/XPath. I wonder why the auto tag-close does not work when editing my xsl file. I understood from the description of the XSLT/XPath extension, ...
1 vote
0 answers
139 views

How could I have VScode on Windows 10 with the default terminal changed to WSL2 Ubuntu-24.04 like a native linux distro?

I'm trying to have inside VScode for Windows 10 (Microsoft Windows [versão 10.0.19045.4474]) options to change the terminal from default to another one such WSL2 Ubuntu 24.04. I have installed ...
0 votes
0 answers
22 views

Excel PowerQuery locking source file for Git

I am using PowerQuery in Excel to load a CSV config file. = Csv.Document(File.Contents("myFile.csv"),[Delimiter=",", Columns=4, Encoding=1252, QuoteStyle=QuoteStyle.None]) This ...
1 vote
1 answer
5k views

Is it possible to launch VSCode and have it access a folder of code on my development VM from my host machine?

When I SSH into my development VM and want to open something in VSCode, I cannot do so from the command line. Obviously that makes sense because the code command runs on the remote server which has no ...
0 votes
0 answers
44 views

How to remove escape sequence from VSC terminal?

Just recently these escape sequences have been showing up on my PowerShell terminal inside VS Code. I've attached a picture of what this looks like: However, inside the PowerShell terminal itself, it ...
0 votes
1 answer
31 views

Disable the VS Code preview pane integration in Windows Explorer

Whenever I select a file while the preview pane is active, VS Code tries to display it. How can I get rid of this integration? I searched around but strangely didn't see any trace of this feature ...
2 votes
1 answer
7k views

Only include a single directory in VSCode file watcher

VSCode Version: 1.47.1 Local OS Version: Windows 10.0.19041 N/A Build 19041 Remote OS Version: NAME="Ubuntu" / VERSION="14.04.5 LTS, Trusty Tahr" Remote Extension/Connection Type: ...
1 vote
2 answers
993 views

I am unable to edit HTML files in VS Code. The cursor does not appear for HTML files, but other file types are editable. What might be the cause?

No editor is visible for the HTML file:
3 votes
1 answer
6k views

Debugger doesn't work on VSC ("The preLaunchTask ... terminated with exit code 127")

I'm creating an app with ionic 4 and SQLite on VSC. I can't access to my db. When I use the debugger, I have the following errors : I have a first "alert window" (I don't know what's the real name) ...
2 votes
1 answer
4k views

Visual studio code - find all references

I've imported a folder with many *.c and *.h files into VSC (also many subfolders). When I try to find all references to a global variable / function or anything else I get an empty results window. Is ...
1 vote
2 answers
6k views

Visual Studio Code false errors at random

I have had issues with Visual Studio code creating errors and then not removing them, even when I comment out the code. Or , not creating errors when there should be errors. This happens on both my ...
1 vote
0 answers
35 views

Make VS Code Flatpak version be able to use fonts from ~/.fonts

I've recently replaced RPM VS Code with Flatpak VS Code on my laptop with Fedora 40. However, I haven't been able to set my font correctly since VS Code doesn't seem to pick up font files in the ~/....
8 votes
2 answers
8k views

How do I `Ctrl+C` copy to the system clipboard with vscodevim extension in vscode/codium without using the `v` mode's system clipboard register `"*y`?

I have already changed the Ctrl+Shift+C keybinding so that I do not enter a terminal when I press it, see Keybinding Ctrl + Shift + C opens a new external terminal in vscode/codium on Linux, how to ...
0 votes
1 answer
3k views

I can not start Microsoft Visual Code on Ubuntu 22.04 anymore

I use Visual code version 1.85.1. Even after downgrading to version 1.79.2 Visual Code does not start. I neither get a message why I can not start Visual Code. Does anyone have a suggestion how to fix ...
0 votes
1 answer
91 views

Disable Cmd + Hover to jump to definition in VSCode on macOS

In VSCode, whenever the Cmd key is down and I hover over a function definition, the editor automatically jumps to that definition. This incredibly annoying since I might press Cmd whenever I want to ...
0 votes
1 answer
49 views

Initiate download from Excel

I have a spreadsheet that contains a column of URL addresses to photos. I would like to download all or selected photos to a location on my computer that I specify. I'd appreciate any suggestions or ...
5 votes
1 answer
2k views

Visual Studio Code: Use keyboard to jump to first error from terminal output

When compiling code using the integrated terminal in VS code (not the "Output" or "Debug Console"), it appears to identify anything as a link that has the format <file path>:&...
6 votes
3 answers
2k views

VSCode autocompletes Typescript angle bracket generics, as if they were xml tags

I have a super annoying issue. When I'm writing some typescript, and I define a generic like export interface MyInterface<T>|, then as soon as I have typed the closing > then VSCode ...
1 vote
1 answer
60 views

Why I can't change the prompt in VSCode's terminal?

I am trying to change the prompt in my VSCode's terminal. My OS is MacOS Monterey 12.6. I use the zsh and I change the PS1 in .zprofile,such like this. Then I use echo to test.The others can work ...
1 vote
1 answer
4k views

VSCode wont run code

Screenshot of error that I get The term 'gcc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify ...
1 vote
2 answers
55 views

unwanted code hints (prettify.css) in vscode

where are these coming from I have disabled all extensions. I am pretty sure that there is no prettify.css or base.css among my project files and yet I am still getting these code hints. How can I get ...
1 vote
2 answers
1k views

VSCode is asking to open external website every time I open it

Every time I open Visual Studio Code, the dialogue box shown on the image below comes twice asking me to open an external website which is very irritating during work. Can you please help me how to ...
11 votes
3 answers
2k views

In VS Code, how can I search in both file names and file contents at the same time?

Is there a way to search in the currently opened folder for a certain string not only in file names but also within the files themselves? I know I can use Ctrl+P to search in file names, or Ctrl+Shift+...
0 votes
0 answers
41 views

How can I prevent the Snyk extension in VSCode from scanning code automatically on save?

I am using the Snyk extension in VSCode, and by default, it runs a code scan every time I save a file. This is slowing down my workflow And I only want to scan the code manually. I have looked through ...
0 votes
2 answers
7k views

Can't SSH to remote server when using public key - Could not establish connection

I added my EC2 instance to the configuration file: Host EC2-Instance HostName 12.12.12.12 User ec2user Port 22 IdentityFile C:\Users\myuser\Documents\ec2_instance.ppk But I still get "Could not ...
5 votes
4 answers
11k views

Visual studio code integrated terminal path different than normal terminal

I am on MacOS Mojave and I can't figure out why visual studio code's integrated terminal has a different path variable than the normal terminal. I have checked that VSCode opens /bin/bash (echo $...
1 vote
1 answer
46 views

Meaning of letters in VSCode Pull Request Extension messages [closed]

I am a (happy!) user of the VSCode Pull Request extension, but unfortunately I was unable to find a complete explanation of the meaning of the letters in the left-pane: when I am reviewing a PR, along ...
2 votes
1 answer
12k views

Visual Studio Code behind Proxy Failed to Load jsconfig.json from Schema Store

Created a jsconfig.json to define a JavaScript project within Visual Studio Code. Once open the containing folder with VS Code, VS code raises a problem: Problems loading reference 'https://...
0 votes
0 answers
18 views

Prevent VSCode from opening same files in different branches

I work with several git branches of a project and I normally perform the git business (pull, checkout, merge...) from the command line, then I launch VSCode with code .. This reopens all files that ...
0 votes
0 answers
64 views

Automate the removal of the VS Code Welcome screen with PowerShell

I setup a portable version of VS Code when I start my Windows Sandbox instances. This works well, however, after every Sandbox restart, when I start VS Code, I get the Welcome screen, so it gets a bit ...
1 vote
2 answers
2k views

Visual Artifact on Visual Studio Code

Windows: windows 10 home (latest update) Graphics Card: RTX 2060 (driver updated) RAM: 2×8GB I am having this artifact. And It is just random. I don't know why.. If I move the cursor to it, it ...
16 votes
4 answers
21k views

Is there a way to install vs-code extensions only inside the workspace?

I just started a course in Angular and while working on that I figured I'd also install basic extensions that make working with this web-development workspace easier. Since I use Settings Sync those ...
2 votes
1 answer
264 views

Jupyter Slideshow in VSCode

I am trying to edit and present a slideshow inside of VSCode using Jupyter Notebooks (on a Windows 11 computer). I can make Jupyter notebooks, and I have the Jupyter Slide Show extension installed in ...

15 30 50 per page
1
2 3 4 5
17