title: How to stop intellij-idea from removing white spaces at end of text lines in my file?
body: <p>I am using 2018.1.5 community edition of intellij editor to edit a plain text file. </p>
  
  <p>I am not using a project. I start it, on Linux as follows:</p>
  
  <pre><code>  idea.sh  my_file.mpl
  </code></pre>
  
  <p>where my_file.mpl is plain text file. </p>
  
  <p>And this works well, except for one big problem.   </p>
  
  <p>I need to have an empty space at end of some lines.  i.e. after the line character on some line in the file, I insert some white. I see the space is there, by doing <code>View-&gt;Active editor-&gt;Show White spaces</code>. I can see the small tiny dotts, showing there are white space character at end of line.</p>
  
  <p>But as soon as I save the file, these white spaces are removed from end of line.</p>
  
  <p>This causes a problem for me (for other reason, when this file is read by another app).</p>
  
  <p>Is there an option to tell it intellij NOT to remove white spaces after the last character on the line?</p>