✅ 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
ero
ero2y ago
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
Pobiega
Pobiega2y ago
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
ironmetalhead
ironmetalhead2y ago
My boss doesn’t want plug ins 😂 he wants it from the vanilla visual studio community to control the comments format
Pobiega
Pobiega2y ago
boss VS Community
ironmetalhead
ironmetalhead2y ago
Yes I googled a lot , I didn’t find anything
Pobiega
Pobiega2y ago
Sir, I think your company is comitting license fraud?
ironmetalhead
ironmetalhead2y ago
How so ?
Pobiega
Pobiega2y ago
Companies are not allowed to use VS Community they must use a paid license
Pobiega
Pobiega2y ago
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.
ironmetalhead
ironmetalhead2y ago
Oh ok, but there is paid license on my account so probably fine
Pobiega
Pobiega2y ago
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
ironmetalhead
ironmetalhead2y ago
Yeah exactly, thank u anyway, I will keep googling then 🙃🙃