skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. 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.

    Supports n, rn, and r returns

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search