In Sublime Text 2 How to view carriage return and line feed?

徘徊边缘 提交于 2019-12-22 01:48:54

问题


In notepad++ there is a toolbar button to switch on/off display of EOL characters, i.e. carriage return and line feed.

Can Sublime Text 2 do the similar thing?


回答1:


Sublime Text does not currently support displaying EOL characters.

http://sublimetext.userecho.com/topic/104394-is-it-possible-to-show-all-characters-spaces-tabs-cr-lf-etc/




回答2:


In case anyone is here years later, I found success with the sublime package RawLineEdit.

  1. Install with Package Control
  2. Enter Raw Line Edit: Toggle into the command palette (via Ctrl+Shift+P)

Further documentation of features can be found in the User Guide. Note that this package is only supported in Sublime Text 3.




回答3:


There is another way to achieve this.

Go to preference -> choose "settings-user"

In the file opened paste this command.

"ensure_newline_at_eof_on_save": true



来源:https://stackoverflow.com/questions/12125645/in-sublime-text-2-how-to-view-carriage-return-and-line-feed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!