Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Indent adds space before same line closing curly bracket #50937

Open
vsfeedback opened this issue Feb 1, 2021 · 0 comments
Open

Smart Indent adds space before same line closing curly bracket #50937

vsfeedback opened this issue Feb 1, 2021 · 0 comments
Labels
Area-IDE Bug Developer Community The issue was originally reported on https://developercommunity.visualstudio.com help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-Formatter Code formatter and/or smart indent
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice]
When using Text Editor > C# > Tabs > Indenting: Smart, even though everything under Text Editor > C# > Code Style > Formatting is unchecked/disabled (including any "Automatically format..." checkboxes), Visual Studio 2019 still adds a space character before the closing bracket:

public int ID {get; set; } when typing {get; set;}

or

if(condition){return; } when typing {return;}

or

DB. Profiles.Select(d => new{ID=d.ID }); when typing new{ID=d.ID}

etc.

The only way to get rid of it I could find is to use "Block" instead of "Smart" for the Intending option. But then, of course, it doesn't indent new code blocks automatically, which is even more annoying.

This issue has been around in Visual Studio 2019 since the beginning. I didn't have that issue in Visual Studio 2015.


Original Comments

Feedback Bot on 1/27/2021, 06:18 PM:

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.


Original Solutions

(no solutions)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 1, 2021
@jinujoseph jinujoseph added Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 2, 2021
@jinujoseph jinujoseph added this to the Backlog milestone Feb 2, 2021
@jinujoseph jinujoseph added the Developer Community The issue was originally reported on https://developercommunity.visualstudio.com label Feb 2, 2021
@CyrusNajmabadi CyrusNajmabadi added the IDE-Formatter Code formatter and/or smart indent label Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug Developer Community The issue was originally reported on https://developercommunity.visualstudio.com help wanted The issue is "up for grabs" - add a comment if you are interested in working on it IDE-Formatter Code formatter and/or smart indent
Projects
None yet
Development

No branches or pull requests

3 participants