On 3 Aug 2011, at 20:52, Matthias Melcher wrote:

> 
> On 03.08.2011, at 18:11, MacArthur, Ian (SELEX GALILEO, UK) wrote:
>>> BTW, just for curiosity: Ian, can you tell us why your editor seems
>>> to do this? Is it a setup you use for your own projects? Which editor?
>> 
>> In this case, I was using scite on a Windows machine - I also use
>> Textpad on Windows (also configured to strip trailing ws). 
>> Many editors now do seem to have it as an option, and I always tend to
>> turn it on (since its house policy here) and then forget when commiting
>> to projects that have a different policy.
> 
> Hmm, it seems that Xcode occasionally adds whitespace. Also, I use copy/paste 
> a lot when coding (yes, that's a sign that I should refactor instead ;-), 
> which gives whitespaces when concatenating lines.
> 
> If I can switch stripping on, I will. Trailing ws's IMHO have no use except 
> making files bigger.

On OSX, I mainly (used to) use Textmate, and it was pretty good for stripping 
trailing ws etc. 

Since I switched to OSX SL, and the Xcode editor got better, I've been using 
it, and one of the things that bugs me is that I can't figure out how to make 
it:

a) Strip trailing spaces
b) Convert tabs to spaces on the fly

Both of which I like.
There don't seem to be menu options for either behaviour - I imagine there's 
some magic incantation I can set to get that behaviour but...

Maybe back to Textmate after all.


Anyway - a while back there was a discussion about the possibility of using an 
auto-indenter to enforce a consistent house style.
Maybe this is an argument in favour of that?

However, as I recall, we couldn't find an indenter that actually did a style we 
liked consistently!



_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to