SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 364 forks source link

Autocompletion for new commands defined in xparse style #1466

Open VhJoren opened 4 years ago

VhJoren commented 4 years ago

Hi

I recently started using sublime text 3 with latextools and latex-cwl. I like the autocomplete functionality for commands so far, except that it does not seem to work (by default) for my own commands that are defined using the functionalities of the xparse package. Specifically, commands defined using \NewDocumentCommand and \DeclarePairedDelimiter (and friends) do not show up at all in the autocompletion list.

I figured out already that I can manually make and add .cwl files to enable autocompletion for those commands. However, since this is a rather cumbersome task, I was wondering whether there is a way to make the autocomplete work automatically for the commands defined in this way as well? Or if this is not the case, whether there are tools to automate the creation of .cwl files for those commands?