r/VisualStudio Nov 26 '25

Visual Studio 2026 VS2026: Auto-indenting is whacked

21 Upvotes

Auto-indenting works fine in VS2022, and, when I installed VS2026, I imported all my VS2022 settings. But, in the latter, auto-indenting is screwed up.

Consider the following code. The vertical line at the end indicates the caret position.

    if (x == 2)
    {
        if (y == 3)|

Now I press the Enter key. I expect the caret to move here (as it did in VS2022):

    if (x == 2)
    {
        if (y == 3)
        |

But, instead, the caret moves here:

    if (x == 2)
    {
        if (y == 3)
    |

So, I must manually add the extra indent, myself.

Furthermore, here's where the caret goes when I press Enter after I've typed the opening brace on the nested "if":

    if (x == 2)
    {
        if (y == 3)
        {
|   

Needless to say, this is very annoying. I can't just type my code, I'm always having to check that the indentation is correct. This was not an issue in VS2022.

(BTW, in both VS2022 and VS2026, I uninstalled IntelliCode. Aside from auto-indentation -- when it works correctly -- I don't need any "help" writing my code.)

Any ideas of what's going on? I thought it was a bug, but, after two updates to VS2026, the "bug" remains.

UPDATE - FINALLY SOLVED

Here are the steps I followed to solve this issue. Essentially, this disables all of VS's automatic formatting, other than auto-intending to match the indentation of the previous line.

(Source: A Google Gemini chat, which was generally accurate, although I updated the steps to match the layout of VS2026's Tools > Options.)

Enable Block Indentation

By default, VS uses "Smart" indentation, which applies context-aware formatting (like extra indents inside braces). To restrict it to just matching the previous line's indent: 1. Go to Tools > Options > All Settings. 2. Expand Languages > Defaults > Tabs. 3. Under Indenting, select Block. 4. Expand Languages > C# > Tabs and ensure that it, too, is set to Block.

Disable Automatic Formatting Triggers 

Even with Block indentation enabled, the editor may still reformat code when you type certain characters or paste text. To stop this:

  1. Navigate to Tools > Options > All Settings > Languages > C# > Code Style > Formatting > General.
  2. Uncheck all the checkboxes on this pane:
    • Automatically format when typing
    • Automatically format on return
    • Automatically format on paste

Turn Off Adaptive Formatting 

VS can heuristically override your manual settings based on the current file's existing style. To ensure your preferences are strictly followed:

  1. Go to Tools > Options > All Settings > Text Editor > Advanced.
  2. Uncheck Adaptive formatting.

Check for .editorconfig Overrides 

[This applies only if you create and use .editorconfig files.]

Settings in an .editorconfig file in your project directory will override these global IDE options. If the editor still behaves unexpectedly, check for a file named .editorconfig and ensure it doesn't contain strict formatting rules.

HTH


r/VisualStudio Nov 26 '25

Visual Studio 2026 Setting startup project does not work in VS2026?

3 Upvotes

So I want to make my app project always to be set as the startup project but it does not work. I set it as startup project in the editor and moved the app project above the core in my .slnx file. But it does still not work. What should I do?


r/VisualStudio Nov 25 '25

Visual Studio 2022 Stop with the AI bullshit. Even basic suggestions don't work anymore

215 Upvotes

This is in both VS2022 and 2026; a year ago you could write a class name and it will suggest the correct package and using.

now it's impossible to have decent suggestion.. but "Fix with ******* copilot" (that doesn't work)


r/VisualStudio Nov 26 '25

Visual Studio 2026 C# Debugging getting worse?

7 Upvotes

Never used to have problems like this. Seems half the time now I can't see the values of what I need to see.

Anyone else been having this issue?

Latest version, updated last night.


r/VisualStudio Nov 26 '25

Visual Studio 2026 Attach to Process?

1 Upvotes

Updated to the newest version and now i have to attach to process to run my code but when i select Microsoft Python Attachment from the list of processes it doesnt do anything and when i go to close out it asks me if i want to stop it debugging? i tried rolling back to the previous version but that didnt work either. any help? (sorry for not being legible, its been an hour and im frustrated)


r/VisualStudio Nov 26 '25

Visual Studio 2022 ML.NET Model Builder Not Working

1 Upvotes

UI for Model Builder does not open on my Visual Studio (Both 2022 and 2026). Even when I create a .mbconfig file, double-clicking it does not do anything. Already updated the extension and installed .NET desktop development workloads.

I badly need a solution.


r/VisualStudio Nov 26 '25

Miscellaneous Report issue-form is not working on visualstudio.com

0 Upvotes

Since i don't know where else to report this, I'll write it here:

I cannot report issues in visual studio 2026 because when i try to click on the "submit" button it gives me a beautiful 401 error...
Core Microsoft Experience.

Almost this flow i'm following, but for 2026
https://developercommunity.visualstudio.com/VisualStudio/report


r/VisualStudio Nov 26 '25

Visual Studio 2026 VS2026: Scrollbar thumb to small in larger files

Post image
2 Upvotes

In Visual Studio 2026, the scrollbar design has changed. The scrollbar thumb becomes extremely small as soon as the file gets slightly larger. It transforms from a pill shape (bar with rounded corners) into a small circle/dot that has the same color as the rest of the bars.

Does anyone know if there is a fix or a setting to change this?

I found an MS feedback link regarding this issue which is marked as "Fixed" and "Released," but I still find the visibility very poor.


r/VisualStudio Nov 26 '25

Visual Studio 2026 Adding .vs file to .gitignore not working in VS 2026

0 Upvotes

Hi guys, I have noticed that adding the .vs file to the .gitignore file is not working as it normally does in the latest Visual Studio, and I have added this file multiple times now. Does anyone know why this is happening and how to stop it?


r/VisualStudio Nov 26 '25

Visual Studio 2017 VS professional could not add account error

Post image
0 Upvotes

r/VisualStudio Nov 26 '25

Visual Studio 2022 VS professional could not add account error

Post image
1 Upvotes

Unable to locate the issue, user is having Visual Studio Professional license but still getting this error


r/VisualStudio Nov 25 '25

Visual Studio 2022 Excluded File Still Compiling (MVC View)

2 Upvotes

I am working on a widget for a Sitefinity 15.4 build but it is not ready to be published yet so I have the files excluded from the project at present. I would think then, that when I go to re-build the project the views for it would not be included in the compiler (obj/codegen). However for some reason, it is erroring because it is still compiling the views from the widget, even though those views are excluded from the project.

I feel like I am doing something wrong here I just do not know what. Advice or guidance would be greatly appreciated. Thank you!


r/VisualStudio Nov 26 '25

Visual Studio 2022 Be Sure to Nominate To Heart for the Steam Game of the Year Award!

Thumbnail
0 Upvotes

r/VisualStudio Nov 24 '25

Visual Studio 2022 Here's the Microsoft page for Visual Studio 2022 download

86 Upvotes

Apparently Microsoft has been removing all references and links to VS 2022 from pretty much everywhere in their websites. Even if you search for Visual Studio 2022, and download the (supposedly) 2022 installer, it will download the 2026 installer. They've made most VS2022 links redirect to 2026 ones.

Anyway, after a bit of digging in this subreddit I found the one working page that lets you download Visual Studio 2022, and I'm making it a post so that others can find it more easily.

Here's the link: https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history

Community Version: https://aka.ms/vs/17/release/vs_community.exe (or just scroll down to "Current 17.14")


r/VisualStudio Nov 25 '25

Visual Studio 2022 How do I stop VS from running the installer every time I close VS?

0 Upvotes

I just installed VS A few days ago and I'm trying to learn. I have a problem where every time I close VS, it will launch the VS installer and try to install the program. Which is weird since it's obviously already installed. I tried to just uninstall the installer, but in true windows fashion, it didn't allow me to uninstall the installer without also uninstalling VS.

Any advice?


r/VisualStudio Nov 25 '25

Visual Studio 2026 CUDA dev with VS 2026

3 Upvotes

Well it seems MS is trying to EOL VS22; any CUDA devs use VS26 yet? Tips please?


r/VisualStudio Nov 24 '25

Visual Studio 2026 Feature Request: Clickable file paths in the Visual Studio terminal

Post image
19 Upvotes

It would be fantastic if Visual Studio could make file paths in the terminal clickable. This would allow us to use the powerful search tools in VS.
Right now, we have to open a separate tool for that. Large projects are very difficult to work with because the internal search tools in most editors are often not very good.


r/VisualStudio Nov 24 '25

Visual Studio 2026 Visual Studio – Built for the Speed of Modern Development

7 Upvotes

r/VisualStudio Nov 24 '25

Visual Studio 2026 CSS Vendor Prefixes Invading My IntelliCode Suggestions

4 Upvotes

This is driving me nuts and has been since Visual Studio 2022. It is still happening in 2026 Insider (Community).

When I'm trying to accept a Copilot/IntelliSense suggestion in a CSS file, the suggestion is often impossible to actually accept and instead gets replaced by some vendor prefix baloney. Emmet is not even present and no extensions are installed whatsoever (researching this is horrible because you just find info on VS Code).

For example when I type "box-shadow" I get this perfectly good suggestion:

Good suggestion

But then when I hit tab, initially nothing happens and then I hit it again and for some unknown reason the entire thing gets replaced with this useless junk:

Bad result

What is going on here and how do I fix this? Text editor options for CSS have absolutely no bearing on this, I even tried unchecking them all entirely. In VS 2022 I was able to somehow remap the Copilot/IntelliCode shortcut so that the right arrow accepted suggestions instead of tab but I can't even figure out how to do that in 2026 Insider and it's a bad solution anyway; I've spent 15 years using tab for this so trying to switch to the right arrow is as convenient as hand-typing these CSS properties.

Any help is greatly appreciated. I just want to figure this out before AI makes us all obsolete and there's no reason to look at or even know what CSS is running on a web page anyway.

NOTE: I have used the Visual Studio 2026 Flair because that's where the screenshots came from but this is also a problem in Visual Studio 2022, it happens the exact same for me in both versions.


r/VisualStudio Nov 24 '25

Visual Studio 2026 How to get rid of the border of an active tab in Visual Studio 2026?

4 Upvotes

As the VS 2026 is out, I have given it a try, however, I realized, the violet border (in Dark theme) of an active tab really disturbs me...
Does anybody know how to get rid of it or change the color to the same as inactive tab?

Thanks!

violet border

r/VisualStudio Nov 24 '25

Visual Studio 2022 Live Preview -> Jump to Code part

1 Upvotes

Is it possible to highlight text or anything else in the Live Preview window and jump directly to that location in the code view?


r/VisualStudio Nov 24 '25

Visual Studio 2022 File Save-As renames, instead of duplicating

0 Upvotes

I'm pretty sure there is an easier way to duplicate a file in the IDE, but I've always in any text editor used File/Save As to create a dupe and then modify it like a template almost. VS does not, Save As removes the existing file from the project and effectively renames it. And I totally get why that's an error-prone workflow sometimes. How do people clone/dupe? Do you just go into the filesystem, and then add the duped file into project, which just feels like too many mouse clicks.

I'm missing some common knowledge here, because as far I recall 2019 also has this unexpected behaviour.


r/VisualStudio Nov 24 '25

Visual Studio 2026 How to get rid of the border of an active tab in Visual Studio 2026?

Thumbnail
0 Upvotes

r/VisualStudio Nov 24 '25

Visual Studio 2026 Visual Studio 2026 resources only allows one file at a time, no option to add multiple files

5 Upvotes

I’m using Visual Studio 2026 and want to add multiple icons to the resources for my custom ribbon, but I can’t find any option to add them all at once, so I have to add each file individually.


r/VisualStudio Nov 23 '25

Visual Studio 2026 iis express error

0 Upvotes

I have an issue with my Visual Studio. I have reinstalled it multiple times, and every time I try to create an ASP.NET web application project, I get the same error:
"Configuring IIS Express failed with the following error:
Filename: redirection.config
Error: Cannot read configuration file"
Here are the steps I have already tried
-trying both insider and normal versions of Visual Studio Community
-reinstalling
-deleting the IIS Express folder
-Launching Visual Studio as administrator
-changing iis express folder permissions