类似于question for eclipse ,
- 如何自动删除正在编辑的整个文件中的尾随空格?
- 如何仅从我更改的行中自动删除尾随空格?
最佳答案
您还可以通过以下首选项(编辑器 -> 常规 -> 其他)在保存时启用它:
对于那些想知道的人,
“始终在插入符行上保留尾随空格”
If this option is selected, trailing spaces will not be stripped on the line where the caret is placed on save operation (for example, when you switch to another window).
( bigger image )
关于android-studio - 如何在 Android Studio 中自动删除尾随空格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26354301/