Visual Studio Code: How to show line endings

前端 未结 4 922
星月不相逢
星月不相逢 2020-11-30 19:06

How can i display lineendings (CR,LF) in Visual Studio Code (not in Visual Studio).

I use following settings, but non of them show the line endings.



        
4条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 19:24

    Render Line Endings is a VS Code extension that is still actively maintained (as of Apr 2020):

    https://marketplace.visualstudio.com/items?itemName=medo64.render-crlf

    https://github.com/medo64/render-crlf/

    It can be configured like this:

    {
        "editor.renderWhitespace": "all",
        "code-eol.newlineCharacter": "¬",
        "code-eol.returnCharacter" : "¤",
        "code-eol.crlfCharacter"   : "¤¬",
    }
    

    and looks like this:

提交回复
热议问题