99 questions from the last 30 days
1
vote
2
answers
210
views
VSCode IntelliSense reports include errors for mixed C/C++ Code
I am mostly programming in C, yet some of my code is in C++. The code compiles fine using gcc/g++ under Linux, yet VisualStudio Code's IntelliSense is reporting include errors with the following setup:...
-3
votes
1
answer
134
views
trying to get my vscode to run my c++ files to the output by default [closed]
Whenever i click the run button on my cpp code the top search bar drops down with multiple options that im not familiar with. i would just like it to run the code in my output or terminal.
0
votes
2
answers
172
views
Why do I get a fatal JSON parse error when trying to install or load any extension in Visual Studio Code?
I have Visual Studio Code on a desktop running Windows 11, and whenever I try to install any extension, or even just try to list extensions, I get the following error:
[error] [Window] Expected ',' or ...
Advice
3
votes
2
replies
100
views
How to start Visual Studio Code PHP Server automatically
I'm using Visual Studio Code for website development, HTML, CSS, Javascript and PHP.
I'm trying to find a way to start the PHP Server automatically when I load Visual Studio Code.
It is just ...
1
vote
1
answer
226
views
How configure GitHub Copilot in VS Code to work with Azure OpenAI/Azure AI Foundry
I am trying to set up GitHub Copilot Chat with an Azure hosted OpenAI model.
But I am struggling to find an authorative answer on what to enter for the endpoint.
Some blog posts suggest: https://xxx....
-1
votes
0
answers
129
views
Does the Dart language server support code completion for switch statements?
Does the Dart language server support code completion for switch statement?
I am asking about the Dart extension for VS Code.
In the switch statement, I want to get a suggestion (autocompletion) for ...
-5
votes
0
answers
106
views
How to have vs code detect deleted typescript files still referenced in the project? [duplicate]
I have a nx monorepo with a lib - typescript
In the lib there is a directory with subdirectories per feature.
I don't need one of the types anymore - so I deleted the file inside which the type was ...
3
votes
1
answer
105
views
Is there a debugger API for VS Code?
I would like to know if there exists any way to interact programmatically with the vs code debugger during a session.
Python would be ideal, but JS/TS could also work. For the langages being debugged (...
0
votes
0
answers
97
views
Buffer not recognized in TypeScript with Playwright and module: "nodenext"
I am using TypeScript 5+ with Playwright and module: "nodenext" in my tsconfig.json:
{
// Visit https://aka.ms/tsconfig to read more about this file
"compilerOptions": {
// ...
-3
votes
0
answers
104
views
Unable to run SFML in VSCode
I was following this tutorial.
It was going fine till 6:16. I installed the latest stable version of SFML (3.0.2) and mingw64 from the SFML website, specifically the files called "WinLibs UCRT 14....
2
votes
1
answer
66
views
How can I change the colour of the folding bars? [duplicate]
When the caret is at the left hand side of the editor window with code folding enabled, it is rendered over the folding bar, and because they are similarly coloured, the caret isn't always obvious. Is ...
2
votes
1
answer
79
views
How can I add line comments instead of block comments to multi-line HTML or CSS code in VS Code?
In VS Code, when you use Ctrl + / to comment out code in certain languages like Python or JavaScript, it adds a line comment to each line by default instead of creating a block comment.
For example, ...
0
votes
0
answers
109
views
jdk-25, main is never used
I am using jdk-25 with VSCode, and Maven for Workspace, and I want to use the new syntax but I can not get rid of the error code:
"main is never used"
My HelloWorld code is:
package org....
0
votes
1
answer
62
views
Tkinter not display window; declared as part of class
Running VSCode with MS Python extension and my window will not display
here's my code
import tkinter as tk
class FormMain:
def __init_(self):
self.build_controls()
def build_controls(...
-3
votes
1
answer
77
views
How do you follow from editor -> outline in VS Code? (highlight in outline)
Right now when I click on any symbol in the Outline View, I am moved to the symbol in the Editor view.
How can I get the reverse, so that when I navigate in the Editor, the Outline gets highlighted ...
-1
votes
0
answers
63
views
Visual Studio Code contains a visual corruption error [duplicate]
The screenshot shows the visual corruption that is plaguing my Visual Studio Code
Whenever I am running VS Code, there are small pixel deformations on the window that make it very difficult to ...
-5
votes
0
answers
65
views
PAckages dont exist? [duplicate]
I'm working on a maven project, with this structure and this POM , but as you can see, vs-code says the packages dont exist. please help me strucutre and code, and the pom is as below.
I dont know ...
0
votes
1
answer
74
views
Cannot see the Solution Explorer in VS Code
I've installed the C# Dev Toolkit in VS Code. But the Solution Explorer doesn't show up for me.
This is my VS Code setup:
Version: 1.105.1 (system setup)
Commit: ...
0
votes
0
answers
58
views
.Flutter suddenly doesnt recognize Widget as a type
Flutter doesn't recognize Widget as type now. Material.dart is imported everywhere but still it still doesn't recognize it..It suddenly happened while i was working on the project.Now other projects ...
0
votes
2
answers
54
views
VS Code TypeScript syntax highlighting gets messed up after type
In TypeScript on VS Code I have the following type:
export type PgInheritableTableWithColumns<
T extends TableConfig
> = PgTableWithColumns<T> & {
extend<
TNewTableName ...
-3
votes
0
answers
70
views
How do I undo clearing the debug console in VS Code?
I accidentally cleared my debug console in Visual Studio Code by pressing the "Clear Console" button next to the search button.
Is there any way to undo clearing the console? Alternatively, ...
-1
votes
1
answer
44
views
How to remove "Powershell" column from Secondary Side Bar in VS Code?
This morning VS Code updated itself to v1.106.0. When I open a terminal window (Ctrl + ') I now see an additional column titled Powershell.
How can I hide this and go back to just having one column ...
0
votes
1
answer
87
views
Tabs don't hide if single terminal is open in VS Code 1.106
I accidentally messed up something in the settings, and now the list of tabs doesn't disappear, even if only one terminal is open:
I need this view, without tabs. And also, I want the button for ...
-1
votes
0
answers
56
views
VS Code fails to run .NET, even if I installed it
When I open a workspace in VS Code, I get this error message notification on the bottom right corner :
Failed to run .NET runtime. You may be missing key Linux libraries. Install them now?
Source: ....
0
votes
1
answer
41
views
Can't connect a local ASP.NET Core API to my Angular v20 Frontend
I've been fighting this problem for the last 3 weeks. I don't know if I'm also doing something wrong at the moment of connecting the API to the Front end not being able to at least print the JSON ...