✅ editorconfig with visual studio
Is there a way to setup rules for the comments in editorconfig file. For example that the comments should start with a space (// comment). And will start a new line after 100 characters
12 Replies
The second one isn't a thing. You can't even enable rulers in VS on Windows (but you can on Mac?????)
The first probably isn't a thing, but i could only Google as well
StyleCop has an analyzer for the comments whitespace thing, but afaik there isnt an editorconfig for it
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1005.md
My boss doesn’t want plug ins 😂 he wants it from the vanilla visual studio community to control the comments format
boss VS Community
Yes I googled a lot , I didn’t find anything
Sir, I think your company is comitting license fraud?
How so ?
Companies are not allowed to use VS Community
they must use a paid license
Visual Studio
Pricing and Purchasing Options | Visual Studio
Professional developer tools subscription & licenses. See our Visual Studio Professional, Enterprise, Test Professional, & MSDN Platforms pricing today.
Oh ok, but there is paid license on my account so probably fine
Then you are likely not actually using VS Community, but VS Pro?
But yeah, if no plugins/analyzers etc are allowed then I dunno if that is possible.
You could write your own dotnet tooling, but thats the same as using a plugin I guess
Yeah exactly, thank u anyway, I will keep googling then 🙃🙃