Partial Auto Indent

General and specific configuration/INI settings

Partial Auto Indent

Postby Telinstryata » Tue Jun 13, 2006 2:03 pm

Using UE 12

I want to use the auto indent so the cursor automatically moves to the same horizontal position as the first non-whitespace char from the line before. I love this feature. :D

When editing code I do not want UE to do any of the other auto indenting (and unindenting) on { or } or If...Else...End If...etc.

I have already removed the /Indent lines from the wordfile for each of the languages I work in, but it still does the auto indenting. Is there some default built into the editor, and if so, how do I turn it off and still have the auto indent work for the first situation above?
User avatar
Telinstryata
Newbie
 
Posts: 4
Joined: Mon Jun 12, 2006 11:00 pm

Re: Partial Auto Indent

Postby Mofi » Wed Jun 14, 2006 5:35 am

Yes, there are built-in defaults for certain languages for downwards compatibility to wordfiles which do not have the /Indent Strings = and /Unindent Strings = definitions. So deleting these definitions does not help.

What helps in your case is to overrule the default indent and unindent strings with new strings which does never occur in your files. For example:

/Indent Strings = "xyzzyx"
/Unindent Strings = "zyxxyz"
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Partial Auto Indent

Postby Telinstryata » Wed Jun 28, 2006 11:25 am

Thanks for the reply. It works great now.

Also it appears that

Code: Select all
/Indent Strings = ""
/Unindent Strings = ""

works just as well.
User avatar
Telinstryata
Newbie
 
Posts: 4
Joined: Mon Jun 12, 2006 11:00 pm


Return to Configuration/INI Settings