newcommand is fine.
since you use a cwl file, it does not matter anyway.
which version of txs do you use ?
can you provide the files or a simplified example ?Thiago tmelorc1@users.sf.net hat geschrieben:Yes, my sty file has the same name as the cwl file. I tried selecting it on the completion options and nothing works. Then I tried deselecting it and agains, nothing happens.

I don't know if this is the reason but my sty file contains the command \alerta{} defined by \newcommand instead of \def or \let.

Is this the problem?

Auto completion for personal commands

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/texstudio/discussion/907840/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/