r/VisualStudio • • Dec 20 '20

Miscellaneous Visual studio weekly chit-chat mega thread

22 Upvotes

Do you want to vent somewhere about how visual studio asked about your experience once again or just generally talk with other developers?

This is the place for you!

Ask anything you want which doesn't fit the content rules here.


r/VisualStudio • • May 14 '23

Miscellaneous Visual studio weekly chit-chat mega thread

3 Upvotes

Do you want to vent somewhere about how visual studio asked about your experience once again or just generally talk with other developers?

This is the place for you!

Ask anything you want which doesn't fit the content rules here.


r/VisualStudio • • 2d ago

Visual Studio 2026 GitLab official MCP server in Visual Studio 2026: OAuth fails with “Client ID is not available”

0 Upvotes

Hi all,

I'm trying to connect our self-hosted GitLab's built-in MCP server (/api/v4/mcp) to Copilot agent mode in Visual Studio 2026 (18.11.1). The same setup with the same GitLab OAuth application works fine in VS Code and OpenCode, but VS won't always authenticate, i.e. no browser opens etc. It was working sometimes, but I cannot figure out when (no stale cache values etc.?)

Config (.vscode/mcp.json in the opened folder; no other definitions in %USERPROFILE%\.mcp.json etc.):

json { "servers": { "GitLab": { "type": "http", "url": "https://<our-gitlab>/api/v4/mcp", "headers": { "X-Gitlab-Mcp-Server-Tool-Name-Prefix": "gitlab_" }, "oauth": { "clientId": "<application-id>" } } } }

What happens:

  • The server shows "Authentication required".
  • In the server dialog, under Advanced settings, "Client ID Registration" offers only "(Manual) Bring your own client Id", and the control is greyed out, so I can't enter a client ID (and our provided client ID from the .json is not showing up here).
  • Clicking Authenticate does nothing visible, i.e., the browser is not opening for authentication. The Output window shows:

System.InvalidOperationException: Client ID is not available. at Microsoft.VisualStudio.Copilot.Core.McpAuth.OAuthClient.DoUIFlowAsync

  • Once, early on, the browser flow did open and the login succeeded. I haven't been able to reproduce that since, even after renaming the server to get a fresh cache.
  • In the .mcp.json editor, the oauth property is flagged by the schema ("Property name is not allowed"), even though VS Code supports oauth.clientId.

Questions:

  1. Is there a supported way to provide a pre-registered OAuth client ID for an HTTP MCP server in VS 2026?
  2. Has anyone got GitLab's MCP server working in VS 2026, and how?

Thanks!


r/VisualStudio • • 3d ago

Visual Studio 2026 Browser Link Hot Reload fails with custom local domain

1 Upvotes

Since the September .NET SDK update, Browser Link no longer works for Hot Reload in Visual Studio 2026 Enterprise.

The injected Browser Link script returns a 403 error. The browser console indicates a cross-origin issue because Browser Link tries to connect to localhost:PORT while my application uses a custom local domain (myapplication.localhost). I have specific reasons for using this domain.

Hot Reload itself still works, but the browser no longer refreshes automatically after changes because Browser Link fails.

I found this article, which describes a similar issue and suggests setting DOTNET_WATCH_AUTO_RELOAD_WS_ORIGINS. However, that solution applies to dotnet watch. I use IIS Express for debugging, and the environment variable does not solve the problem.

Is there a way to configure Browser Link to work with a custom local domain when debugging with IIS Express?


r/VisualStudio • • 5d ago

Visual Studio 2026 Github copilot in VS, doesn't let you use custom end point for llm..

4 Upvotes

I find this really odd, it is only the major US players that are allowed to scrape your codebase and be used with LLM. At least the vscode copilot extension lets yo use any endpoint url for an llm.


r/VisualStudio • • 5d ago

Visual Studio 2022 Built Castov Extension for VS Code / Cursor: Manage & Execute MCP Flows directly inside your editor

0 Upvotes

Hey developers,

We just released the Castov Extension on Open VSX / VS Code Extension ecosystem!

Castov is an execution layer for AI Agents built on top of the Model Context Protocol (MCP). With this extension, you can inspect, test, and run your MCP tools and agent workflows right from your development environment.

🚀 Quick Setup:

  1. Search for `Castov` in your VS Code / Cursor / Windsurf Extensions tab.

  2. Install `Castov.castov-vscode` v0.1.2.

  3. Start running your local MCP execution layer!

We also support distribution via Docker, Homebrew, and GitHub Actions for full CI/CD integration.

🌐 Website & Docs: https://castov.com

Would love for you guys to try it out and give feedback on how we can improve the dev experience for agentic applications!


r/VisualStudio • • 6d ago

Visual Studio 2022 Morning folks ... a (probably) really dumb question.

3 Upvotes

So. Old (ancient) hobby coder here, trying to use existing skills when learning new ones might make more sense.

I have been tasked with connecting a friend's hobby weather station to a user friendly website. I am familiar enough with php, html, css, and my preferred old-man coding language is still visual basic through visual studio. I can kinda / sorta read C#, but it is far from intuitive for me. (I know. I just never bothered.)

I have never set up an asp.net project. I thought this was the opportunity to learn how to do that, but I suspect that VS doesn't support the use of visual basic with asp.net anymore.

Is that true? If it isn't ... thoughts on how I initiate the project? I can't see a VB option when I try to start the new project.

Thanks for any thoughts.


r/VisualStudio • • 8d ago

Miscellaneous Anyone tried Jetbrains “Rider”, going from Visual Studio…?

14 Upvotes

I have been a visual studio user since past 3 years for the professional workplace usage and i have seen it transform over these 3 years by adding bunch of useful features but recently i got a Mac for my personal development work, so as the visual studio is not available for Mac anymore i looked out for the alternatives to use on Mac, then i saw the Jetbrains “Rider” it literally felt like a mess of features and not a good experience to be honest it isn’t that intuitive interface unlike Visual Studio, i think i have to use visual studio code which is quite familiar for me as i used it many times before. Hoping to get a real visual studio experience on Mac. As Microsoft is getting into the ARM architecture laptops i hope they bring back Visual Studio for Mac as well in the near future..!


r/VisualStudio • • 8d ago

Visual Studio 2026 Form Won't visually refresh

0 Upvotes

Hi,

I have a windows form project in C#.
I have a timer that starts on the press of a button.
I have a method that executes every time the timer ticks.
I confirm the timer ticks when it's meant to, the code inside runs, the variables update as they should.
The form doesn't.

I know that the variables are updating with each tick, I know that the label.Text is updated with each tick, I know that everything but the visual result on the form is updating as it should. I've confirmed it with breakpoints and stepping through each line and seeing in the variable inspector as each variable and label.Text updates.
But the form is not reflecting anything but the values on initial loading of it. It never updates from its first set of values.

Every tick I'm calling the computation and write to form methods, followed by this.Refresh(). But nothing changes on the form.

It's been days. I'm baffled and demoralised.
Any help would be greatly appreciated.

I will politely refuse any suggestions of using genAI/LLMs and any encouragement to use them myself.

Thanks

EDIT:
I wanted to avoid posting the whole program because it's been 6 years since I've properly wrote code and I know this has bad practices in it. But y'all are telling me I've done something weird, so here's the whole formMain.

This is a little companion app to a game over 20 years old, I'm eventually going to try and write to the memory of said game to change things. Currently the app reads the data from game memory successfully and puts it on the form, but as said above, only when the form initially loads. When the data in game memory changes, that is read successfully and held in variables but the form doesnt visually reflect that.
I was driven back to programming after 6 years because I'm trying to do something I don't think anybody has tried to do before. I'm very very very very rusty.

public partial class formMain : Form
{
//defining things to pull and push data into the nr2003 process
[DllImport("kernel32.dll")]
public static extern nint OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);
[DllImport("kernel32.dll", SetLastError = true)]
public static extern bool ReadProcessMemory(nint hProcess, nint lpBaseAddress, byte[] lpBuffer, uint dwSize, out int lpNumberOfBytesRead); //this is a value check for the chosen address
[DllImport("kernel32.dll", SetLastError = true)]
public static extern bool WriteProcessMemory(nint hProcess, nint lpBaseAddress, byte[] lpBuffer, uint dwSize, out int lpNumberOfBytesWritten); //modifies the stored value
[DllImport("kernel32.dll")]
public static extern bool CloseHandle(nint hObject);
public string gameName = "NR2003";
const int PROCESS_ALL_ACCESS = 0x1F0FFF;
public formMain()
{
UpdateStuff();
}
private void UpdateStuff()
{
InitializeComponent();
var processes = Process.GetProcessesByName(gameName);
var sessionStateAddress = (nint)0x0097B114;
int sessionState = 0;
string carNotFound = "Car Properties not found";
string notFound = "Game not found";
string failedOpen = "Failed to open game";
string notInSession = "Not in a session";
nint gamePathAddress = 0x00F78868;
nint seriesPathAddress = 0x00897230;
var carOffsetHex = 2214;
nint playerCarAddress = 0x00ACDC26;
var gameProcess = processes[0];
var hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, gameProcess.Id);
string trimWhitespace = "\0";
hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, gameProcess.Id);
//clearing all data from the form, ready
lblDebug.Text.Remove(0);
lblGameName.Text.Remove(0);
lblPlayersCarProp.Text.Remove(0);
//error messages regarding grabbing the process
if (processes.Length == 0)
{
lblPlayersCarProp.Text = notFound;
return;
//break;
}
if (hProcess == nint.Zero)
{
lblPlayersCarProp.Text = failedOpen;
return;
//break;
}
//declaring the buffer we use to read from memory addresses and the string variables we'll put that data into
var buffer4 = new byte[4];
var buffer32 = new byte[32];
var buffer48 = new byte[48];
var buffer1024 = new byte[1024];
string[] tempString2mil = new string[2000000];
string gamePath = "";
string seriesPath = "";
string carPath = "";
string playerCarPath = "";
//checking if the game is in an active session eg practice/race/quali/test
ReadProcessMemory(hProcess, sessionStateAddress, buffer4, (uint)buffer4.Length, out int bytesRead);
sessionState = BitConverter.ToInt32(buffer4);
//if it is in a session, away we go
if (sessionState > 0)
{
int length = 0;
//read from memory the path to where the exe is, trim it of whitespace
ReadProcessMemory(hProcess, gamePathAddress, buffer1024, (uint)buffer1024.Length, out bytesRead);
gamePath = System.Text.Encoding.UTF8.GetString(buffer1024);
length = gamePath.IndexOf('\0');
gamePath = gamePath.Substring(0, length);
//read from memory the folder where the .cars files are, trim it of whitespace
ReadProcessMemory(hProcess, seriesPathAddress, buffer32, (uint)buffer32.Length, out bytesRead);
seriesPath = System.Text.Encoding.UTF8.GetString(buffer32);
length = seriesPath.IndexOf('\0');
seriesPath = seriesPath.Substring(0, length);
//combine it all to create a full directory for where the .car files are, ready to read
carPath = gamePath + @"series\" + seriesPath + @"\cars\";
//find player car filename to open
ReadProcessMemory(hProcess, playerCarAddress, buffer48, (uint)buffer48.Length, out bytesRead);
playerCarPath = System.Text.Encoding.UTF8.GetString(buffer48);
length = playerCarPath.IndexOf('\0');
playerCarPath = playerCarPath.Substring(0, length);
//append filename to carPath
playerCarPath = carPath + playerCarPath;
//start loop by writing error message to label, if file read is successful it'll get overwritten
lblPlayersCarProp.Text = carNotFound;
//declaring all the player car properties
float playerRCmax = 0.0f;
float playerSTmax = 0.0f;
float playerSPmax = 0.0f;
float playerSSmax = 0.0f;
float playerAeromax = 0.0f;
float playerChassismax = 0.0f;
float playerEnginemax = 0.0f;
float playerReliabilitymax = 0.0f;
float playerRCmin = 0.0f;
float playerSTmin = 0.0f;
float playerSPmin = 0.0f;
float playerSSmin = 0.0f;
float playerAeromin = 0.0f;
float playerChassismin = 0.0f;
float playerEnginemin = 0.0f;
float playerReliabilitymin = 0.0f;
//define temp variables to trim each line down to value alone
string tempVal = "";
string tempDev = "";
int tempValIndex = 0;
int tempDevIndex = 0;
tempString2mil = File.ReadAllLines(playerCarPath);
using (FileStream fs = File.Open(playerCarPath, FileMode.Open))
{
byte[] b = new byte[2048];
UTF8Encoding temp = new UTF8Encoding(true);
//reading and calcing roadcourse stats
tempVal = tempString2mil[23];
tempValIndex = tempVal.IndexOf('=') + 1;
tempVal = tempVal.Substring(tempValIndex, 8);
tempDev = tempString2mil[6];
tempDevIndex = tempDev.IndexOf('=') + 1;
tempDev = tempDev.Substring(tempDevIndex, 8);
playerRCmax = float.Parse(tempVal) + float.Parse(tempDev);
playerRCmin = float.Parse(tempVal) - float.Parse(tempDev);
//reading and calcing short track stats
tempVal = tempString2mil[24];
tempValIndex = tempVal.IndexOf('=') + 1;
tempVal = tempVal.Substring(tempValIndex, 8);
tempDev = tempString2mil[7];
tempDevIndex = tempDev.IndexOf('=') + 1;
tempDev = tempDev.Substring(tempDevIndex, 8);
playerSTmax = float.Parse(tempVal) + float.Parse(tempDev);
playerSTmin = float.Parse(tempVal) - float.Parse(tempDev);
//reading and calcing speedway stats
tempVal = tempString2mil[25];
tempValIndex = tempVal.IndexOf('=') + 1;
tempVal = tempVal.Substring(tempValIndex, 8);
tempDev = tempString2mil[8];
tempDevIndex = tempDev.IndexOf('=') + 1;
tempDev = tempDev.Substring(tempDevIndex, 8);
playerSPmax = float.Parse(tempVal) + float.Parse(tempDev);
playerSPmin = float.Parse(tempVal) - float.Parse(tempDev);
//reading and calcing superspeedway stats
tempVal = tempString2mil[26];
tempValIndex = tempVal.IndexOf('=') + 1;
tempVal = tempVal.Substring(tempValIndex, 8);
tempDev = tempString2mil[9];
tempDevIndex = tempDev.IndexOf('=') + 1;
tempDev = tempDev.Substring(tempDevIndex, 8);
playerSSmax = float.Parse(tempVal) + float.Parse(tempDev);
playerSSmin = float.Parse(tempVal) - float.Parse(tempDev);
//reading and calcing aero stats
tempVal = tempString2mil[30];
tempValIndex = tempVal.IndexOf('=') + 1;
tempVal = tempVal.Substring(tempValIndex, 8);
tempDev = tempString2mil[13];
tempDevIndex = tempDev.IndexOf('=') + 1;
tempDev = tempDev.Substring(tempDevIndex, 8);
playerAeromax = float.Parse(tempVal) + float.Parse(tempDev);
playerAeromin = float.Parse(tempVal) - float.Parse(tempDev);
//reading and calcing chassis stats
tempVal = tempString2mil[31];
tempValIndex = tempVal.IndexOf('=') + 1;
tempVal = tempVal.Substring(tempValIndex, 8);
tempDev = tempString2mil[14];
tempDevIndex = tempDev.IndexOf('=') + 1;
tempDev = tempDev.Substring(tempDevIndex, 8);
playerChassismax = float.Parse(tempVal) + float.Parse(tempDev);
playerChassismin = float.Parse(tempVal) - float.Parse(tempDev);
//reading and calcing engine stats
tempVal = tempString2mil[32];
tempValIndex = tempVal.IndexOf('=') + 1;
tempVal = tempVal.Substring(tempValIndex, 8);
tempDev = tempString2mil[15];
tempDevIndex = tempDev.IndexOf('=') + 1;
tempDev = tempDev.Substring(tempDevIndex, 8);
playerEnginemax = float.Parse(tempVal) + float.Parse(tempDev);
playerEnginemin = float.Parse(tempVal) - float.Parse(tempDev);
//reading and calcing realibility stats
tempVal = tempString2mil[33];
tempValIndex = tempVal.IndexOf('=') + 1;
tempVal = tempVal.Substring(tempValIndex, 8);
tempDev = tempString2mil[16];
tempDevIndex = tempDev.IndexOf('=') + 1;
tempDev = tempDev.Substring(tempDevIndex, 8);
playerReliabilitymax = float.Parse(tempVal) + float.Parse(tempDev);
playerReliabilitymin = float.Parse(tempVal) - float.Parse(tempDev);
}
//output to form
lblPlayersCarProp.Text = "Road Course = " + playerRCmin + " - " + playerRCmax + "\n"
+ "Short Track = " + playerSTmin + " - " + playerSTmax + "\n"
+ "Speedway = " + playerSPmin + " - " + playerSPmax + "\n"
+ "Superspeedway = " + playerSSmin + " - " + playerSSmax + "\n"
+ "Aero = " + playerAeromin + " - " + playerAeromax + "\n"
+ "Chassis = " + playerChassismin + " - " + playerChassismax + "\n"
+ "Engine = " + playerEnginemin + " - " + playerEnginemax + "\n"
+ "Reliability = " + playerReliabilitymin + " - " + playerReliabilitymax;
}
else //if not, error message
{
lblPlayersCarProp.Text = notInSession;
}
lblDebug.Text =
gameName
+ "\n" +
sessionState.ToString()
+ "\n" +
gamePath
+ "\n" +
seriesPath
+ "\n" +
carPath
+ "\n" +
playerCarPath
;
}
private void Form1_Load(object sender, EventArgs e)
{
UpdateStuff();
}
private void btnApplyConfig_Click(object sender, EventArgs e)
{
gameName = txtboxGameName.Text;
}
private void timer1_Tick(object sender, System.EventArgs e)
{
//these dont work??
UpdateStuff();
this.Refresh();
}
private void btnTimerStart_Click(object sender, EventArgs e)
{
timer1.Start();
}
}

r/VisualStudio • • 8d ago

Visual Studio 2026 VS2026 hangs

Thumbnail gallery
0 Upvotes

Greetings. Visual Studio freezes during simple debugging even with sufficient RAM. Lenovo ThinkBook 14 G6. Windows 11 build 26300.9711

Does anyone have any ideas what's going on? Thanks for any help.


r/VisualStudio • • 8d ago

Visual Studio 2026 Can't run code SDK not found

0 Upvotes

Hi everyone i tried using VS to learn to code in C# but keep getting a SDK error making it impossible to run the code. I tried using AI to solve the problem but I can't seem to find a solution below is a list of things I tried.

I'm having a problem with Visual Studio 2026 Community on Windows 10.

When I create a brand-new C# Console App and select .NET 10.0, Visual Studio gives me this error:

"One or more errors were encountered while creating project ConsoleApp3.

The generated project content may be incomplete.

The SDK 'Microsoft.NET.Sdk' specified could not be found."

The project creation button is disabled.

Visual Studio:

- Visual Studio Community 2026

- Version 18.11.0

- October 2026 Feature Update

.NET:

- .NET 10 x64 is installed

- `C:\Program Files\dotnet` is the x64 installation

- SDKs installed:

- 10.0.112

- 10.0.402

Running the x64 dotnet executable directly works:

"C:\Program Files\dotnet\dotnet.exe" --list-sdks

returns:

10.0.112 [C:\Program Files\dotnet\sdk]

10.0.402 [C:\Program Files\dotnet\sdk]

And:

"C:\Program Files\dotnet\dotnet.exe" --info

shows SDK 10.0.402 and MSBuild 18.9.15.

Initially I also had a 32-bit .NET installation under:

C:\Program Files (x86)\dotnet

`where dotnet` showed both x86 and x64 installations, and the x86 version was being picked up in some cases. I removed the x86 .NET installation completely and rebooted, but the Visual Studio error remained.

Things I tried:

  1. Created a completely new Console App every time, so this is not an old/broken project.

  2. Visual Studio Repair was tried previously. It did not fix the problem.

  3. Visual Studio Installer:

    - .NET desktop development workload is installed

    - .NET SDK component is installed

    - MSBuild is installed

    - .NET MAUI/Android/iOS/Mac Catalyst components were also installed

    - MSBuild support for LLVM (clang-cl) is not installed (not relevant as far as I know)

  4. Environment variables:

    - `MSBuildSDKsPath` was NOT originally defined.

    - No global.json exists in the project/repo.

  5. Visual Studio's MSBuild installation contains:

    `C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Current\Bin\Microsoft.DotNet.MSBuildSdkResolver.dll`

    So the .NET SDK resolver DLL is present.

  6. Under:

    `C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild`

    I only see:

    - Current

    - Microsoft

    - Xamarin

    There is no `Sdks` folder there.

  7. Under:

    `C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Microsoft`

    there is a `Microsoft.NET.Build.Extensions` folder, but no `Microsoft.NET.Sdk` folder.

  8. I completely uninstalled Visual Studio Community and reinstalled it from scratch.

    The same `Microsoft.NET.Sdk could not be found` error still occurs.

So at this point I'm pretty sure the .NET SDK itself is installed correctly, but Visual Studio/MSBuild is failing to resolve it.

What could cause the .NET SDK resolver to ignore/find the wrong SDK location in this situation?

Is there a specific MSBuild/Visual Studio configuration, resolver setting, registry entry, or environment variable that controls where Visual Studio looks for `Microsoft.NET.Sdk`?

I would especially appreciate a way to diagnose which SDK path the Visual Studio MSBuild process is actually trying to use, rather than doing another reinstall/repair.

Thanks!


r/VisualStudio • • 9d ago

Visual Studio 2022 Debug launch and View in Browser stop working

3 Upvotes

Debug launch and View in Browser stop working after Visual Studio update bug is back after update to 18.11.0


r/VisualStudio • • 9d ago

Visual Studio 2022 Color picker is HUGE and I have to keep restarting

Post image
2 Upvotes

Basically the title. The color picker from the properties window keeps getting bigger and bigger until it's huge and I can't pick all the colors so I have to restart VS and open it to reset it. I have to do this every day and it's so annoying.


r/VisualStudio • • 9d ago

Visual Studio 2026 Vs2006 plugin makes vs controlable to Agents

0 Upvotes

I got tired of copy-pasting compiler errors and crash logs to Claude/Cursor, so I built an MCP tool "VsDebugMcp" that lets AI directly control Visual Studio.

VsDebugMcp - Visual Studio Marketplace

Once connected, you can just talk to your AI agent and it can: * Build & Fix: Trigger a build in Visual Studio, read the actual error list / output window directly, and fix compile errors without you copy-pasting anything. * Hit F5 & Debug: Start debugging, set breakpoints (even conditional ones), step through code (Step Over / Step Into), and continue/pause execution. * Inspect what went wrong: When your code crashes, the agent can check the call stack, look at local variables, read exception messages, and inspect memory. * Modern CMake & CTest: If you do C++, it works with CMake projects too—switching CMakePresets, building with Ninja, and running CTest cases directly. * Works on old & new VS: Tested on everything from Visual Studio 2017 all the way up to VS 2026. Does someone want a try ? I’d love to hear from you: * What’s the #1 thing you wish an AI agent could do inside Visual Studio? (e.g. running specific test frameworks like NUnit/xUnit, analyzing minidump crash files, NuGet package stuff?) * If you give it a spin, please let me know if anything feels clunky or breaks on your setup! wuxinmao2008/VsDebugMcp: A pluggin hosts on visual studio 2026. The plugin setups a mcp server local, which make projects debugable by agents. Happy to answer any questions in the comments.


r/VisualStudio • • 10d ago

Visual Studio 2022 VS Copilot - Agent Struggling to Edit Files

Thumbnail
0 Upvotes

r/VisualStudio • • 11d ago

Visual Studio Tool Visual studio plugin - Asp classic syntax highlight

3 Upvotes

Currently I am working in a very legacy code base with more than 30 years old of spaghetti code and business rules in every .asp file and store procedures.

Yes it is a mess. And I don't know if someone has the same problem that I have... The visual studio doesn't help me with the basics of highlights, colors and syntax with VBScript in asp classic. Sometimes is impossible to know where an if begins and ends in one file with 6k lines (yes for real).

So I made this plugin to help me with my current job.

https://marketplace.visualstudio.com/items?itemName=AspClassicSyntaxHighlight.AspClassicSyntaxHighlight

Is the vibe code project? In parts, yes. My real concern was doing a good structure of the project and performance. The first hit of opening the files is more demanding because it's using cache. After that it is more smooth.

I am cleaning the git to make it public soon.

If you guys want to try i will appreciate it.

Sorry for my mistakes, English isn't my first language.

Thanks.


r/VisualStudio • • 11d ago

Visual Studio 2022 In your own words, what does a “workspace” in Visual Studio mean to you?

0 Upvotes

r/VisualStudio • • 11d ago

Visual Studio 2026 Did VS 2026 remove collapsible regions?

0 Upvotes

Got a new laptop and just noticed I can't collapse regions for easier viewing. Is there a way to turn them back on?


r/VisualStudio • • 12d ago

Visual Studio 2026 Visual Studio's background updater left 7 GB in my %TEMP%

14 Upvotes

Visual Studio Community 2026's background updater ("Visual Studio Background Download", BackgroundDownload.exe in Task Manager) can leave copies of its installer in %TEMP%. On my PC I found 438 of them, 7.18 GB. Others have hit this too: a 2020 thread here and a GitHub issue from last week (filed in the VS Code repo, 337 copies / 39.8 GB, low disk space there). Neither has a fix that I could find.

What I saw: the scheduled task \Microsoft\VisualStudio\Updates\BackgroundDownload runs every 3 hours. From its log, it unpacks a newer installer into a random folder like %TEMP%\noqdxyzd.2je, runs the updater from there to pre-download the pending update (18.10.3 for me), and never deletes the folder. Since Oct 4 each copy stayed whole (58 x 125.5 MB); the 380 older ones from July only kept BackgroundDownload.exe (~0.2 MB each).

I only noticed because Task Manager showed a 100% SSD spike and I had Claude dig into it.

To see how many you have, paste this one line into PowerShell (a normal one is fine) and press Enter. It only reads:

$d = Get-ChildItem $env:TEMP -Directory | Where-Object { Test-Path "$($_.FullName)\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\BackgroundDownload.exe" }; "{0} folders, {1:N2} GB" -f $d.Count, (($d | Get-ChildItem -Recurse -File | Measure-Object Length -Sum).Sum / 1GB)

To clean, paste this line (copy it, don't retype it). It moves only those leftover folders, the ones with BackgroundDownload.exe inside, to the Recycle Bin:

Add-Type -AssemblyName Microsoft.VisualBasic; Get-ChildItem $env:TEMP -Directory | Where-Object { Test-Path "$($_.FullName)\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\BackgroundDownload.exe" } | ForEach-Object { [Microsoft.VisualBasic.FileIO.FileSystem]::DeleteDirectory($_.FullName, 'OnlyErrorDialogs', 'SendToRecycleBin') }

Then run the first line again: it should say 0 folders. Empty the Recycle Bin once you're happy. A Microsoft Q&A answer says these folders are safe to delete as long as the real installer is in C:\Program Files (x86)\Microsoft Visual Studio\Installer.

To stop it:

  • Install the pending update (Visual Studio Installer > Update; just opening the Installer isn't enough). After I updated to 18.10.3 and ran the task twice by hand, it ran straight from Program Files and created no new folders in %TEMP%. My guess is the copies start again whenever a newer Installer is out and you haven't updated yet.
  • Tools > Options > Environment > Product Updates > "Automatically download updates" (untested).

Or turn background downloads off machine-wide with Microsoft's documented policy (docs). Paste this into an admin terminal (Win+X > Terminal (Admin)). I've set it: the task still starts every 3 hours, but stops after ~4 s with "Feature is disabled by policy" in its log, and nothing downloads:

reg add "HKLM\SOFTWARE\Policies\Microsoft\VisualStudio\Setup" /v BackgroundDownloadDisabled /t REG_DWORD /d 1 /f

Disabling the scheduled task works too (u/SagansCandle's tip), also from an admin terminal. The 18.10.3 update re-registered the task here, so it may not stay off after an update:

schtasks /Change /TN "\Microsoft\VisualStudio\Updates\BackgroundDownload" /DISABLE

r/VisualStudio • • 12d ago

Visual Studio 2026 My materials dont import in VS studio after i export them as a glTF in blender

Post image
0 Upvotes

I started learning how to code a few weeks ago and im trying to import blender models there but once i drag principed bsdf to output and just pick a whole bunch of colors and export thoese my model (tried creating a small city) just turn completely white in vs studio while in blender theyre all the colors i added, Ive been stuck on this for days and i dont know how to fix it.


r/VisualStudio • • 13d ago

Miscellaneous Tracepoints: logging a value from the debugger without adding a print statement

3 Upvotes

A tracepoint is a breakpoint that writes a message to the Output window and keeps running instead of stopping. It’s handy when you want to see a value across a lot of iterations without stepping through each one, and there’s no temporary print line to remove later or commit by accident.

To set one: right-click the line, Breakpoint, Insert Tracepoint (the wording shifts a bit between versions). In the settings, tick “Log a message to Output Window” and write the message with expressions in curly braces, something like order {order.Id} total {total}. Keep “Continue code execution” ticked or it will just act like a normal breakpoint. There are also built-in keywords like $FUNCTION and $CALLSTACK if you want to know where a hit came from.

Some limits. Every hit goes through the debugger, so on a line that runs thousands of times it can slow things down a lot. As far as I know, tracepoints are saved in your local solution settings and not in source control, so teammates won’t see yours unless you export them from the Breakpoints window. And they only log while you’re debugging.

You can also add a condition to the same breakpoint, so only the interesting hits get logged, for example total > 1000. Do you combine the two, or does the condition check slow a hot path down too?


r/VisualStudio • • 13d ago

Visual Studio 2026 Issue connecting my blazor app to remote sql server database hosted my Monsterasp.net

Thumbnail
1 Upvotes

r/VisualStudio • • 14d ago

Visual Studio 2022 I made a free extension that adds syntax highlighting for code embedded in strings (HTML, SQL, CSS, JSON…) in Visual Studio 2022/2026

2 Upvotes

Hey everyone,

Ever written HTML, SQL or CSS inside a string in Visual Studio and seen it all painted the same flat color? That bugged me enough that I built NestLight.

What it does

NestLight recognizes code embedded in string literals and colors it as its own language. It only provides colors. It never edits, formats or rewrites your code.

How it works

A string is highlighted only when you explicitly mark it, either with a tag or with a marker comment:

const template = html`<div class="card">...</div>`;

NestLight never guesses from the content, so you won’t get surprise colors on random strings.

Supported

  • Host languages: JavaScript / TypeScript, C#, Python and C++
  • Embedded languages: HTML, CSS, SQL, JSON, GraphQL, XML, Markdown, YAML, regular expressions and shaders (GLSL, WGSL)

Links

It’s free and MIT licensed. It’s still early (v0.5.0), so I’d really appreciate feedback. If something breaks or there’s a language you’d like to see, open an issue on GitHub or reply here.

Thanks for reading!


r/VisualStudio • • 14d ago

Visual Studio 2026 Everything is broken.

4 Upvotes

Within a few minutes of opening F12 Go To Definition breaks, Intellisense breaks, Hot Reload breaks. Syntax highlighting breaks.

Restart and it's good for about ten minutes.

Rinse and repeat.

I've tried deleting bin/obj folders. No change.

Any ideas? Latest release VS 2026.


r/VisualStudio • • 14d ago

Visual Studio 2026 Title: Visual Studio Community 2026 – JavaScript Code Formatting, Indentation Guide Lines, and Code Folding Not Working

1 Upvotes

Visual Studio Version: Community 2026 (18.10.3) – September 2026 Feature Update

Issue Description:

I am facing multiple issues with the JavaScript code editor in Visual Studio Community 2026.

  1. Missing Indentation Guide Lines: The vertical guide lines that indicate code indentation and nested blocks are not visible in the JavaScript editor.
  2. JavaScript Code Formatting Issue: JavaScript code is not aligning or formatting properly. Even after using the Format Document shortcut (Ctrl + K, Ctrl + D), the code indentation remains incorrect.
  3. Missing Code Folding Controls: The expand/collapse (+/-) arrows are not displayed beside JavaScript functions, if/else statements, and other code blocks.
  4. Editor Settings Not Working: I have tried checking formatting, outlining, and indentation settings, but the issue remains unresolved.

Expected Behavior:

  • JavaScript code should be formatted and indented correctly.
  • Vertical indentation guide lines should be visible for nested code blocks.
  • Expand/collapse controls should appear beside JavaScript functions and code blocks.
  • Format Document should automatically correct code alignment.

Actual Behavior:

JavaScript code remains improperly aligned, indentation guide lines are missing, and code folding controls are not visible.

Request:

Please investigate this issue in Visual Studio Community 2026 (version 18.10.3) and provide a solution or fix for JavaScript formatting, indentation guide lines, and code folding functionality.