See line length in visual studio 2012

I like to limit to 80 characters in each line of my code for readability. I would like to know if there is any scale to show the length of the line in visual studio 2012, for example, how does it show the line number (I mean the horizontal scale?)

+4
source share
2 answers

The Visual Studio performance update block contains a column setting in which the vertical column guide will be displayed in the editor.

Column Guide

Draws a vertical line in the code editor to remind developers that their complete line of code or comments may not correspond to one single screen. Just place the cursor in the appropriate column and select "Add Manual" from the context menu

+4
source

Visual Studio 9.0 has a way to do this:

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Text Editor] "Guides"="RGB(200, 200, 200) 80" 

Taken from: https://gist.github.com/rsneekes/843732

I seem to recall trying to get it to work when I upgraded to VS 2010, but this should be more of a problem than it was worth it. I wonder why (or if) they deleted it.

Also: Possible duplicate: Adding a manual to the editor in Visual Studio

Of course, I do not find anything working without any expansion in the past 2008 for myself.

+1
source

Source: https://habr.com/ru/post/1491954/


All Articles