0

In the project I am working on, I am tasked with forcing line character width to 140 characters for a line of code in the visual studio editor. Unfortunately, to my research, any roslyn based analyzer does not support this feature. Can you please lead me a way to achieve this, it could be writing custom rules or what?

bugrasitemkar
  • 431
  • 1
  • 7
  • 26

1 Answers1

1

You could add the Editor Guidelines extension into Visual Studio:

https://marketplace.visualstudio.com/items?itemName=PaulHarrington.EditorGuidelines

I find it helpful to visually limit the length of lines of code, but it's not an automatic enforcement.

Olivier Jacot-Descombes
  • 104,806
  • 13
  • 138
  • 188
Ben Wesson
  • 589
  • 6
  • 16