comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Tabs in Workbench
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Tabs in Workbench [message #59051] Tue, 04 March 2008 06:20
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

In my on-going quest to get four spaces when I hit a TAB
in the IDL Workbench, I report some new information.
Thanks to Paul Krummel, I am now aware that there are
*two* places where you have set this up for yourself.

The first is under Preferences->General->Editors->Text Editors
and the second is under Preferences->IDL->Editor. I had a
mismatch between the number of spaces for tabs in those
two places. I think that has been *part* of the problem.

Alas, this doesn't solve the problem totally, either.
For example, with the new setup consistent as to number
of spaces for tabs, I want to edit a CASE statement. It
looks like this:

CASE mapIndex OF
0: Map_Set, ....
1: Map_Set, ...
ENDCASE

The CASE and ENDCASE are, in this instance, indented
three spaces, and the cases are indented three more
spaces. (This code was written back in my "3-space"
youth.)

I open up a new line between the two cases, and put
my cursor on the first character in the new open line.
If I hit a TAB now, I move over to the place where
I'm aligned with the numbers 0 and 1. That is six
spaces. (One might argue that this is where I want
to be, but leave that for a moment.) The next TAB
moves me two spaces. (To align with 8?) All subsequent
TABs now move me four spaces at a time.

Now, I admit this makes slightly more sense to me than
what I *used* to see, when the number of spaces appeared
to be totally arbitrary, but it is still *not* what I
want, which is four goddamn spaces when I hit a TAB.

If I sound grumpy it's just because I never expected
my beloved IDL to turn into Microsoft Word. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: reading largh number of images
Next Topic: Re: Tabs in Workbench

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 04:38:09 PDT 2025

Total time taken to generate the page: 1.11662 seconds