There are some files that contains r
(without n
followed), which is displayed as line break in VSCode. I want to inspect these r
that does not have n
followed. Is it a way to make it display?
Using "editor.renderWhitespace": "all", "editor.renderControlCharacters": true
in settings doesn’t work.
2
Answers
To display the carriage return character r in Visual Studio Code, you can follow these steps:
Open VS Code settings (shortcut Ctrl + ,).
Search for render whitespace.
Navigate to the Editor: Render Whitespace setting.
Choose the all option to display all whitespace characters, including spaces, tabs, and line breaks.
It doesn’t look like there is a built-in way to display the various line endings, See Possibility to display line endings in text area is still open after many years.
However, check out this extension: code-eol. It should show your carriage return character.