Skip to main content
January 18, 2011
Answered

tabs and autoindenting

  • January 18, 2011
  • 2 replies
  • 2750 views

How do you turn autoindenting off ?

I tried windows -> coldfusion -> editor profiles -> editor and could not find how to do that.

This topic has been closed for replies.
Correct answer Bert_Dilliën

If there is something like

<cfif a eq 1>

   <cfif b eq 1>

   </cfif>         Prefer this line not to automatically tab over to sit under the <cfif b eq 1>, automatically going under it is ok, just by spaces, not tabs.

<cfelse>

   ...

</cfif>


You could change the CFBuilder preferences to insert spaces instead of tab, but I do not think that would be a best practice.

Anyway you will find it under Preferences -> General -> Editors -> Text Editors : check option 'insert spaces for tabs'

Cheers Bert.

2 replies

Inspiring
January 21, 2011

When in Preferences, search for 'Formatting'. You will see all different categories in which you can set/modify/disable the formatting rules. (e.g. CSS, HTML, Javascript,...)

Cheers Bert.

Charlie Arehart
Community Expert
Community Expert
January 21, 2011

But Bert, none of those seem to have to do with auto-indenting. That's why I didn't propose them. Do you see something different?

/charlie

/Charlie (troubleshooter, carehart. org)
Inspiring
January 24, 2011

If you would disable the formatting in Javascript for instance, you will notice that CFBuilder does not auto-format the text with tabs and spaces anymore when you would write an if statement around existing code.

Could you give an example of what you exactly mean with auto-indenting?

Charlie Arehart
Community Expert
Community Expert
January 18, 2011

I've looked and looked and don't see any option, either in the CF, HTML, or General preferences related to editing.

You may want to clarify just what you mean, such as if you have an indented line, and you enter a new line, you don't want it to stay indented at that level?

If that's it, here's another thought: sometimes it helps to stop and ask--if they have not provided a way to do it, maybe there's reason to question going against the flow. Don't get me wrong, I know that sometimes one "just has their preferences", but let's ask: is that what you mean above, and if so, why do you not want it to doing that?

/charlie

/Charlie (troubleshooter, carehart. org)