Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get line ending glyphs in Visual Studio 2012?

Is there any way to get line ending glyphs in Visual Studio 2012?

The following screen shot (from notepad++) show what I want (the CR LF part): enter image description here

like image 511
steenhulthin Avatar asked Feb 07 '13 12:02

steenhulthin


2 Answers

You might want to check out this extension: End of The Line by Rolf W. Rasmussen. The current binary version displays CR and LF identifiers at the end of the line all the time, but the source version ties it into VS's "View Whitespace" menu option.

It's for Visual Studio 2013, but it's open source and should be fairly straightforward to recompile as a VS2012 compatible plugin

(You might need to change the references - the VSSDK packages on nuget can be really useful here. You'd need VSSDK.CoreUtility and VSSDK.Text. In fact, that might be worth a PR regardless...)

like image 138
citizenmatt Avatar answered Sep 22 '22 06:09

citizenmatt


Nope, Visual Studio has no feature to show End of Line Markers. (Reference)

But it gives the ability to show Whitespace with (Ctrl + E + S) which is adressed here.
If any incosistencies are included, VS should suggest to fix the document automatically.

But if you need to do actions other than that, I recommend using notepad++ as described by Hanselman here

If you think Visual Studio should include this feature, you better vote for this request

Edit:

By the way, VS shows glyphs for wrapped words by enabling through:

Tools ->  Options ->  Text Editor ->  All Languages ->  Show visual glyphs for word wrap

Like:

example for glyphs

like image 40
Beytan Kurt Avatar answered Sep 21 '22 06:09

Beytan Kurt