Skip to main content
Jan 18, 2011 1:33 PM UTC
Answered

tabs and autoindenting

How do you turn autoindenting off ?

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

This topic is closed to new replies. Start a new post to keep the conversation going.
Bert_DilliënCorrect answer
Inspiring
Jan 24, 2011 5:07 PM UTC

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.

12 replies

Inspiring
Jan 21, 2011 3:54 PM UTC

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.

Translate
Charlie Arehart
Community Expert
Community Expert
Jan 21, 2011 4:54 PM UTC

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

Translate
/Charlie (troubleshooter, carehart. org)
Inspiring
Jan 24, 2011 9:53 AM UTC

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?

Translate
Charlie Arehart
Community Expert
Community Expert
Jan 18, 2011 8:06 PM UTC

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

Translate
/Charlie (troubleshooter, carehart. org)