Author Topic: Comment/alias expansion  (Read 2263 times)

dunkers

  • Senior Community Member
  • Posts: 606
  • Hero Points: 27
Comment/alias expansion
« on: August 21, 2011, 06:37:05 pm »
I'm just downloading 16.0.2 but this is apparent in both 16.0.1 and 15.0.1 so I don't think the latest version will change this...

Essentially, doc comments don't expand. If I type '///' I just get the same on the next line instead of an expanded doc comment. Similarly for all the rest. However, if I type '/**' then I get this:

Code: [Select]
/**
 *
 */

I recall changing the default doc comment to this a long while ago, but the problem is that I can't find where this is configured. The C/C++ comment expansion is still at the default (and none of them work, even though all tickboxes enable them, and the file is explicitly set to C/C++ mode). There is nothing in the language alias, and the global alias has nothing relevant in it.

Where else would this be set up? I've manually checked alias.slk in case SE was fibbing, but it is correct. What might stop the doc comments from expanding?

dunkers

  • Senior Community Member
  • Posts: 606
  • Hero Points: 27
Re: Comment/alias expansion
« Reply #1 on: August 21, 2011, 07:16:24 pm »
Quote
However, if I type '/**' then I get this:

Just realised this is a consequence of the normal comment expansion  ::)

dunkers

  • Senior Community Member
  • Posts: 606
  • Hero Points: 27
Re: Comment/alias expansion
« Reply #2 on: January 12, 2012, 04:16:13 pm »
Still stuck on this one. None of the doc comments expand for me (as my later comment shows, that expansion is the normal one and not a doc expansion).

What could be stopping doc comments expanding?

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Re: Comment/alias expansion
« Reply #3 on: January 12, 2012, 06:53:42 pm »
There were a couple topics on this in the past few weeks.
Try here (also read earlier in that thread for more info).

dunkers

  • Senior Community Member
  • Posts: 606
  • Hero Points: 27
Re: Comment/alias expansion
« Reply #4 on: January 12, 2012, 09:33:09 pm »
Thanks chrisant++ - the macro variable trick did the job :)