I defined a custom command:
\newcommand{\fullref}[1]{\autoref{#1}, \autopageref{#1}}
Is it possible to have TeXstudio list available labels from my document, so that I can use that custom command like I am using \ref or \autoref and similar commands?
Note: the option to load included files is checked/activated (in the options in the Editor tab).
I'd like TeXstudio to show available labels when I enter the brackets for \fullref{#1}.
Create a custom command, e. g. \newcommand{\fullref}[1]{\autoref{#1}, \autopageref{#1}} and start typing it.
You need to record \fullref in cwl file.
For example,
~/.config/texstudio/completion/user, create a file my-macros.cwl containing line \fullref{label}#r.my-macros.cwl.Related documentation:
this is answered
Thank you. It was super easy. I just had to put \fullref{key}#r in my custom completion file. :)