title: How do I auto-remove trailing whitespace in Android Studio?
body: <p>Similar to the <a href="https://stackoverflow.com/questions/1043433/how-to-auto-remove-trailing-whitespace-in-eclipse">question for eclipse</a>, </p>
  
  <ul>
  <li>How can I auto-remove trailing whitespace from the entire file being edited?</li>
  <li>How can I auto-remove trailing whitespace only from the lines I changed?</li>
  </ul>