Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

EOLM, End of the Line Markers Visual Studio Extension

Extensions don't have to be monsters. They don't have to have everything and the kitchen sink too. Sometimes a focused, specific extension that does one thing and one then well is the perfect fit for your needs.

Today's extension from Rolf W. Rasmussen is a case in point. It does one thing, but if you've ever needed something like this, you'll know just how perfect this help could be...

End of the Line

image

End of the Line is a Visual Studio extension that shows end of line markers in text editor allowing users to differentiate between CRLF and LF line endings.

Visual Studio provides the Edit ▸ Advanced ▸ View White Space (Ctrl+R, Ctrl+W) option to visualize spaces and tabs. Unfortunately this option does not visualize line break characters such as carriage returns (CR) and line feeds (LF). The End of the Line is a Visual Studio extension fixes this. When used it will CR and LF characters as ¤ and ¶ respectively using the same font style as Visual Studio displays spaces and tabs in.

Source code

https://bitbucket.org/rolfwr/endoftheline

Sources of inconsistent line endings

Have you ever wondered why Visual Studio starts showing the Inconsistent Line Endings when you open a file, even though you've only ever used Visual Studio to edit the file? Detecting where these inconsistent line endings originate from is a lot easier when you're able to see the line endings while editing the file. Common ways in which inconsistent line endings gets introduced is:

  • Copying and pasting code from a file with different line endings.
  • Using Visual Studio extensions that always assumes CRLF endings to reformat regions of code.

[GD: Gallery post copied in full]

And best of all, as you've seen above, the source is available too!

Tags:

Follow the Discussion

  • I'd say it's pretty fortunate that the View White Space option doesn't visualize line endings, but that's no reason not to have an additional feature for that :)

  • prapaporn  pukhamkomprapaporn pukhamkom

    I need driver program line appication for notebook window8

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.