-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to display line endings in text area #12223
Comments
Same thing as #24625 |
@alexandrudima Any progress on this front? Keep having to crack open notepad++ or |
@alexandrudima Any update on this ? |
Add "editor.renderWhitespace": "all" to settings.json 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. |
@sajidali I agree. I keep having to copy my code into NotePad ++ to see special characters like new lines. I would like to see |
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 😉 |
@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. |
+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. |
@sohamkamani that's pretty cool! Although I notice that it displays the same character
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. 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. |
When opening a file with mixed line endings, vscode is still showing it as To reproduce: By the way, this might by why code-eol isn't showing them as different EOLs. |
I have a second reason: Notepad++ opens instantly. EDIT: No longer applies nowadays, vscode startup speed has improved a lot since then. |
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? |
Please, please address this! Thank you |
To everyone subscribed to this: You'll likely also want to upvote my feature request here, before it's closed by bot: #119025 The reason most people want to see line endings is because they want to detect and fix mixed endings, right? Knowing "where" is useful mostly in binary files, but you can currently use hex editor if you're dealing with those. It's also useful if you're working on a text file where you want mixed endings on purpose, like testing how compilers and tools deal with such files, etc., but this is an infrequent corner case. |
Can't speak for most people, but mixed line endings aren't always a problem that need fixing. Or at least that's not why I subscribed to this issue. I was writing a test suite that did some stuff with whitespace and wanted to be able to read the whitespace in my source code.
"Use |
@masaeedu Sure, I recognize this feature is important too. In fact, the corner case I mentioned is one I'm having to deal with myself, so I'd like to have this as well. |
I need this feature. If I could see where the newline mark is, it would make my job a lot easier. Disabling line wrapping is also inconvenient, because I have to move the text sideways... |
@lukaszpolowczyk out of curiosity, what's stopping you from deleting the new line characters? You should be able to go to the end of the line or beginning of the next line and delete them. Just because you can't see the CRLF or LF doesn't mean you can't delete it. |
@DougPlumley I'm deleting, but first I need to guess where the newline character is and where the wrapped line is. In the PDF file, it goes something like this:
And the editor additionally wraps some lines. The result is that I have two newline characters to delete, two wrappers that I don't need to delete, and one newline character that should stay. In the editor I cannot see where the newline is and where the wrap is. Do you understand now? :D |
🧐 |
Yes and no I suppose, because you can show line numbers and anything that wraps is going to have the same line number. You can also select a single line feed and Control + D (Command + D on macOS) to select the next word You can also use search in the file to find, find/replace new lines. |
@DougPlumley Thanks, that's what they'll be doing: Actually it's obvious, dumb that I didn't figure it out. :P But it makes it all the more strange that Microsoft doesn't want to introduce natively, a similar marking in VSCode. |
I don't think that what you're asking is this, but still for who his searching for this gets here, and this could be helpful for many of you like me! |
We're still waiting... |
Would love this feature as well. There is clearly interest for it. Hope we get a kind soul interested in this. Pretty please. <3 |
I want it, but just for diff comparison purpose, because very often I don't see a change and usually it's because of line endings. |
We're coming up on 8 years since this was proposed. It'd be wild if this bug went a full decade without attention. And it is a bug. If my config is telling me it's rendering "all" whitespace, but there's exceptions, well then that's not "all" whitespace is it? I can't imagine it'd be super difficult to get the settings to stop lying to users. So alternative solution: change the setting to say "most", drop the "all", and just accept that truly rendering all whitespace is just beyond the technical abilities of VSC. |
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
The text was updated successfully, but these errors were encountered: