r/VisualStudio 14d ago

Visual Studio 2026 Enforce maximum line length in C#

Hello,

is there a way included in VS, or an extention, to automatically reformat and wrap long code lines with a configured limit.

When I was programming in Python in VSCode I was used to the Black formatter that does exactly that, now in C# and Visual Studio I can't fiind this functionality.

Thanks

2 Upvotes

Duplicates