Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Auto-complete weirdness

LEGEND ,
Mar 31, 2010 Mar 31, 2010

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

TOPICS
Builder
815
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 31, 2010 Mar 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 31, 2010 Mar 31, 2010
LATEST

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

    Translate
    Report
    Community guidelines
    Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
    community guidelines
    Resources