Atom文本编辑器在保存时删除结尾的空格 [英] Atom text editor remove trailing whitespace on save

查看:115
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆