Skip to main content
Inspiring
March 31, 2010
Question

Auto-complete weirdness

  • March 31, 2010
  • 1 reply
  • 853 views

G’day
I have all the auto-complete options set to default.

In a CFM file if I key in <cffunction>, I get <cffunction></cffunction>.  Good.

In a CFC file, if it has no <cfcomponent /> tags, if I type <cffunction>, I get <cffunction></cffunction>.  Good.

In CFC, if I key in <cfcomponent>, I get no </cfcomponent> inserted automatically, but if I go CTRL-SPACE, there’s an option to insert it.  Not "good", but "adequate".

In a CFC with <cfcomponent /> tags, if I key in <cffunction>, I get no </cffunction>, and there is no option to insert one even when I press CTRL-SPACE.

This is all a bit random and illogical, is it not?

--
Adam

This topic has been closed for replies.

1 reply

Inspiring
March 31, 2010

In a similar vein to this, <cfsavecontent> does not auto-close (although it should, given my settings), but if I press CTRL-SPACE, the closing tag is there to select.

However if I key in <cfsavecontent variable="x">, then even CTRL-SPACE does not work.

--

Adam

Dipanwita_S
Inspiring
April 1, 2010

Hi Adam,

I would like to know your settings for:

      • Code assist - Auto-Activation - Auto code assist
      • Code assist - Auto-insertion -  Automatically insert closing tags
      • Code assist - Closing tag settings - Insert closing tags on a new line
      • Typing - Auto-close tags

With all the above settings enabled as my default, auto-closure works uniformly for the tags you mentioned (cfcomponent, cffunction, cfsavecontent).

Also, when you say 'key in', do you mean typing out the entire tag name or selecting the tag from code assist list.

Thanks,

Dipanwita

Adobe ColdFusion Builder Team