在IntelliJ IDEA 12中保存时删除尾随空格 [英] Remove trailing whitespace on save in IntelliJ IDEA 12
本文介绍了在IntelliJ IDEA 12中保存时删除尾随空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在保存到IntelliJ IDEA中时自动删除尾随空格?我知道有一些解决方法,例如,使用git在提交时修剪空白. 也许这个问题是这个问题的重复,但我希望这个问题无需设置键盘快捷键和宏即可完成操作.
Is it possible to remove trailing whitespace automatically on save in IntelliJ IDEA? I know there are some workarounds, for example, using git to trim the whitespace on commit. Maybe this question is a duplicate of this one, but i hope this can be done without setting up keyboard shortcuts and macros.
推荐答案
不知道12,但是13中有以下设置:
Don't know about 12, but there's the following setting in 13:
设置→编辑器→在保存"中删除尾随空格
自IntelliJ 2017.2起,该版本低于
As of IntelliJ 2017.2 it's under
设置→编辑器→常规→在保存"中删除尾随空格
这篇关于在IntelliJ IDEA 12中保存时删除尾随空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文