-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work]
Visual Studio 2022 removes spaces before the angle bracket of parameters types. For example, the line of code
int value = SomeFunction <int> (someParameter);
gets reformatted as
int value = SomeFunction<int> (someParameter);
This is incorrect. It is objectively wrong to not put a space before the < punctionation mark. If you want to allow people to opt-into the wrong way of formatting the code, then fine, but don't force the wrong way onto people.
There is no option in C# format spacing to include a leading space before angle brackets. This needs to be added, or better yet, just default to the correct formatting.
Given how frequent type parameters are used, this incorrect formatting makes Visual Studio's format code feature unusable.
Original Comments
Feedback Bot on 5/2/2025, 09:52 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Feedback Bot on 5/5/2025, 05:40 PM:
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.
Deepak Rathore (ALLYIS INC) [MSFT] on 7/11/2025, 03:22 PM:
Thank you for providing feedback, and we’re sorry to hear it’s not behaving as you expect. Based on your description so far, we were unable to reproduce the issue. Could you please upgrade to latest version of Visual Studio and try again. If the issue persists, please let us know
Anonymized GDPR on 7/11/2025, 04:48 PM:
(private comment, text removed)
Bob Jones on 11/5/2025, 05:56 PM:
Muhammad Nabil Fikri Adenan (Centific Technologies Inc) [MSFT]
It’s obvious that your “need more information” is a lame attempt to get your ticket system to automatically close the ticket. The problem is EXACTLY what the OP states. The code formatter does NOT put a leading space before the open angle bracket. Yes, this does happen if you run “autoformat code on paste”. It also happens if you use the keyboard or menu bar to format the code.
There is literally no more information you can possible need or get about this problem. If Microsoft is too lazy to fix one line of code in the code fomatter, then at least have the honesty to admit you are not going to fix it because you don’t want to rather than you just don’t understand what the problem is and you need more information to figure it out.
Microsoft’s refusal to even attempt to fix bugs in Visual Studio is exactly why VS gets a bad rap. If a customer takes the time to hand you a bug on a silver platter, the least you can do is attempt to fix it instead of trying everything to weasle out of scheduling a bug fix.
This is literally a one-minute fix. If I had access to the Visual Studio code base I’d have it fixed already. It cannot be hard to change the rule from “zero spaces before angle bracket” to “one space before angle bracket”. You have spent way more time trying to get out of addressing this bug than it would take for one of your developers to actually fix it.
The worst thing a software company can do is play games with its bug tracking to make it look like there are fewer bugs by having them returned for fradulant reasons rather than fixing the bug. And using an automated closure system to get rid of the report of a bug you don’t want to fix is quite shady. It does not instill confidence in you customers.
This bug was literally posted seven months ago and you couldn’t find any time in the past half year to fix one line of code? This is ridiculous.
Feedback Bot on 7/11/2025, 04:53 PM:
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.
Muhammad Nabil Fikri Adenan (Centific Technologies Inc) [MSFT] on 10/13/2025, 04:01 AM:
Thank you for taking the time to log this issue!
I would like to confirm if your issue is as showned in the gif below:
if not, In order to investigate your issue further, can you help to confirm several questions?
1. Could you try to update your VS to latest build?
2. Can you provide us a repro video using https://www.screentogif.com/ or a similar tool?
(The reason we’re asking for additional information is that we’d like to fully understand the issue and try to reproduce it on our side.)
We look forward to hearing from you!
Feedback Bot on 10/22/2025, 06:07 AM:
We will close this report in 14 days because we don’t have enough information to investigate further. To keep the problem open, please provide the requested details.
Bob Jones on 11/5/2025, 05:58 PM:
And yes, this does occur with the LATEST VERSION OF VISUAL STUDIO.
The bug isn’t going to magically go away.
Muhammad Nabil Fikri Adenan (Centific Technologies Inc) [MSFT] on 11/6/2025, 02:53 AM:
Thanks for your sharing the detail steps, I can reproduce this issue through your shared steps and this issue has been escalated for further investigation, if there is any process, I will inform you immediately.

