At the moment there is only the little statusbar menu which display/change the line ending if the actual file. But sometimes it would be great to see the line endings directly in every line (see atom f.e.) especially when there are mixed line endings (not good, but this happens from time to time).
Greetings
Tonka
Same thing as #24625
@alexandrudima Any progress on this front? Keep having to crack open notepad++ or cat -e
to see newlines, which is pretty annoying.
Any update on this ?
And it seems that this issue is looping since there are 2 issues that refer to each other (#24625 <> #12223)
@alexandrudima Any update on this ?
Add "editor.renderWhitespace": "all" to settings.json
It renders most whitespaces, but not newline characters.
It would be very helpful to render the newline characters, with distinct renderings for CR vs LF. This is especially helpful if you have a mixed line ending file and want to see where the issues are.
@bpasero Is there any chance, someone picks this up and completes this?
@sajidali I agree. I keep having to copy my code into NotePad ++ to see special characters like new lines. I would like to see editor.renderControlCharacters
so it behaves.
Any movement on this case for rendering the line endings?
This issue has been open for almost a year, and seems like very "low hanging fruit" which would benefit a lot of users. Is the team considering implementing it?
@adamralph: _perhaps this one is kept unresolved on purpose... there should at least be one or two things that Atom is better at_ :wink:
@alexandrudima Could you kindly retriage this one? A highly requested feature.
In the mean time, does anyone know of any extensions that implement this feature? Doesn't look like the team are very excited to add this feature anytime soon.
willing to send the person who adds this a snickers bar.
no bamboozles.
I mean, thats a tasty offer
+1, very needed feature!
Gentle reminder that lots of people are eagerly awaiting this.
+1, #26646
If Render Control Characters does not show Newline characters — what control characters are rendered when enabling this setting?
Nearly every other editor I have used with support for rendering control characters does display newlines characters when enabled.
This is a frequently used and highly expected feature by the users. Any developer from the VScode side that can give us a timeline of when this feature might be implemented?
I am desperately awaiting this feature as well.
In the meantime, I made an extension to show line endings, in case anyone wants this feature now : code-eol
@sohamkamani that's pretty cool!
Although I notice that it displays the same character ⬎
regardless of whether the EOL character is LF, CR, or CRLF. The reason I want this feature is to be able to distinguish them. If that's something you'd be willing to implement, I humbly suggest:
These are the characters I've seen used in some other apps. The nice thing about them is that they represent the physical movement of the typewriter head when performing a line feed (LF) or carriage return (CR) and they are additive (downwards arrow + leftwards arrow = downards arrow with corner leftwards).
Good work, just one more request.
@sohamkamani as @adamralph said, we need distinct rendering for each of line break characters.
I have already asked for the same in the above comments, that distinct displayed character is need to notice the mixed line ending issues.
It would be great if the official team can provide this basic feature. @egamma, @alexandrudima this is long awaited features waiting for your attention.
This missing feature is the sole reason I still have Notepad++ installed.
Thanks @adamralph for the suggestion. Just to give you and @sajidali an update, I have implemented and updated the code-eol extension according to your suggestion.
If there are any more suggestions, please feel free to file them under the extensions repo, since we wouldn't want to pollute this thread.
Of course, what I really hope for, is for this extension to be made obsolete by vs-code having this feature natively! 😄
@sohamkamani that is all kinds of awesome. Thanks!
When opening a file with mixed line endings, vscode is still showing it as LF
or CRLF
in the status bar.
After saving, it fixes it, but I think it should show, for example, LF (mixed)
(maybe in red) until the file is modified.
This is important so that you know the file still has mixed EOLs, and you might want to fix that.
To reproduce: printf "lf\ncrlf\r\ncr\rnone" > mixed-eol.txt && code mixed-eol.txt
If you open this file in Notepad++ and enable visible EOL, you can see it has mixed endings.
By the way, this might by why code-eol isn't showing them as different EOLs.
Should I post this in a different issue, as a bug?
This missing feature is the sole reason I still have Notepad++ installed.
I have a second reason: Notepad++ opens instantly.
I am now working in a project where I need to have mixed line endings (some files require LF only), and this is pretty difficult to deal with in VScode. :-S Komodo Edit has the ability to set CR/LF vs LF on specific files. That would be a fantastic addition, for those that need it.
In vscode version 1.36.1, it seems like the problem still exists. Is there a plan to improve this feature?
It has been almost 4 years since this feature request. I would never imagine this would be such a hard feature to implement. Are there any updates or a timeline for this?
Any plans to implement this?
Most helpful comment
Gentle reminder that lots of people are eagerly awaiting this.