superman268 / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Request: Apply "trim trailing spaces" when file is saved, not immediately #667

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Have auto-indent enabled
2.  Press <enter> at end of a line.  New line is auto-indented
3.  Move the cursore anywhere else to look at something
4.  When you return, your auto-indent is gone.  Pressing <end> takes you to 
very beginning of line.

What is the expected output? What do you see instead?
   The need to leave the line I'm editing is so common, and auto-indent so useful, that it makes the trim trailing spaces feature as implemented hardly worth it (IMO).  

The implementation in Borland compilers (of the 90's) was that when saving or 
loading a file the trailing whitespace was discarded.  I found this completely 
adequate, as it prevented accumulation of useless whitespace but I never ran 
into the constant frustration I do with the feature in PyScriptor.  If you're 
wise, you will be saving often enough anyway.

What version of the product are you using? On what operating system?
2.5.3 (x86) on Windows 7

Original issue reported on code.google.com by AgentFri...@gmail.com on 28 Jun 2012 at 9:52