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

15 30 50 per page
1
2 3 4 5
28