In Sublime Text 2 How to view carriage return and line feed?

Sublimetext2Eol

Sublimetext2 Problem Overview


In notepad++ there is a toolbar button to switch on/off display of EOL characters, i.e. carriage return and line feed.

Can Sublime Text 2 do the similar thing?

Sublimetext2 Solutions


Solution 1 - Sublimetext2

In case anyone is here years later, I found success with the sublime package RawLineEdit.

  1. Install with Package Control
  2. Enter Raw Line Edit: Toggle into the command palette (via Ctrl+Shift+P)

Further documentation of features can be found in the User Guide.
Note that this package is only supported in Sublime Text 3.

Solution 2 - Sublimetext2

Solution 3 - Sublimetext2

There is a quick workaround, in the search, enable the Regular expression and the search value use \n. You will see all the line feed is highlighted.

Solution 4 - Sublimetext2

05 2021

This might not really helpful for OP question and also the question is 8yrs old and iam assuming he must have got a answer pretty early on.

This is anyone still looking for the answer to show the carriage return in Sublime text 3.

As on May 2021 the current version is 3.2.2

Detailed version of @Sam YC answer

Tested in Sublime text 3

  1. Press Ctrl+ F (Windows)
  2. Select the first box 'Regular Expression (Alt+R)'
  3. Also select 'Highlight matches' (Last box with plain border)
  4. Enter \n

enter image description here

  1. You should see something like this. If you do not see anything, just toggle the 'Highlight matches'.

enter image description here

Solution 5 - Sublimetext2

There is another way to achieve this.

Go to preference -> choose "settings-user"

In the file opened paste this command.

"ensure_newline_at_eof_on_save": true

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionchanceView Question on Stackoverflow
Solution 1 - Sublimetext2laneryView Answer on Stackoverflow
Solution 2 - Sublimetext2Matt YorkView Answer on Stackoverflow
Solution 3 - Sublimetext2Sam YCView Answer on Stackoverflow
Solution 4 - Sublimetext2DexterView Answer on Stackoverflow
Solution 5 - Sublimetext2PravinView Answer on Stackoverflow