Atom文本编辑器在保存时删除结尾的空格 [英] Atom text editor remove trailing whitespace on save
本文介绍了Atom文本编辑器在保存时删除结尾的空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Sublime text
.现在我正在尝试Atom
.当我以崇高的文本格式保存任何文件时,它不包含任何尾随的空白行.但是将任何文件保存在Atom
中都会留下空白行.如何强制Atom
不要在结尾留空白?
I use Sublime text
. Now I am trying Atom
. When I save any file in sublime text it does not include any trailing blank line. But saving any file in Atom
leaves a trailing blank line. How do I force Atom
not to leave trailing white spaces?
推荐答案
在您的Atom Preferences
下,转到Packages
选项卡并搜索whitespace
.点击whitespace
程序包,然后取消选中Ensure Single Trailing Newline
选项
Under your Atom Preferences
go to Packages
tab and search for whitespace
. Click on the whitespace
package and uncheck Ensure Single Trailing Newline
option
这篇关于Atom文本编辑器在保存时删除结尾的空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文