android-studio - 如何在 Android Studio 中自动删除尾随空格?

标签 android-studio intellij-idea

类似于question for eclipse ,

  • 如何自动删除正在编辑的整个文件中的尾随空格?
  • 如何仅从我更改的行中自动删除尾随空格?

最佳答案

您还可以通过以下首选项(编辑器 -> 常规 -> 其他)在保存时启用它:

enter image description here

对于那些想知道的人,

“始终在插入符行上保留尾随空格”

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/

相关文章:

java - Android 将按钮或 View 保留在应用程序内所有 Activity 的前面,而不使用 baseActivity

android - Android Studio 2.1.1 Gradle项目同步失败

intellij-idea - 一般如何修复 'target of URI does not exist'?

java - 复制带有完整包名的代码

java - sessionfactory、bean 和多个 xml 配置文件

android - 错误 : Program type already present: android. 支持.v4.os.ResultReceiver

java - 通过布局充气器设置复选框 setChecked()

java - 如何使用 Jar 文件在 IntelliJ IDEA 中设置运行/调试配置?

android - 如何在 Android Studio 中使用来自 App Engine 模块的 Android 库模块?

eclipse - intellij idea 中缺少显示面板