It also works with almost any version of Visual Studio, you just need to change the "8.0" in the registry key to the appropriate version number for your version of Visual Studio. This also works in SQL Server 2005 and probably other versions.įor those running Visual Studio 2015 or later, the best solution is to install the Editor Guidelines by Paul Harrington rather than changing the registry yourself. This trick also works for various other version of Visual Studio, as long as you use the correct path: 2003: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Text EditorĢ005: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Text EditorĢ008: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Text EditorĢ008 Express: HKEY_CURRENT_USER\Software\Microsoft\VCExpress\9.0\Text Editor The vertical line will appear, when you restart Visual Studio. The first part specifies the color, while the other one ( 80) is the column the line will be displayed. If you are using Visual Studio 2008 open the registry at HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Text Editor and add a new string called Guides with the value RGB(100,100,100), 80. The current disadvantage of this method is that you can't specify the column directly. Or install the Guidelines UI extension (which is also a part of the Productivity Power Tools), which will add entries to the editor's context menu for adding/removing the entries without needing to edit the registry directly.Theįirst part specifies the color, while the other one ( 80) is the column the line will be displayed. VS 2012: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\Text EditorĪnd add a new string called Guides with the value RGB(100,100,100), 80. ![]() ![]() VS 2010: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Text Editor Install Paul Harrington's Editor Guidelines extension for VS 2010 or VS 2012.Install Paul Harrington's Editor Guidelines extension. I've always been searching for a way to make Visual Studio draw a line after a certain amount of characters.īelow is a guide to enable these so called guidelines for various versions of Visual Studio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |