autocomplete for labels in custom environments #3579
Replies: 1 comment 1 reply
-
Thanks for the suggestion! This should be possible to implement, it is very similar to the custom label commands feature we already have: https://hannah-sten.github.io/TeXiFy-IDEA/editing-a-latex-file.html#support-for-user-defined-commands We will think about the magic comments, I can imagine there are always cases which TeXiFy cannot detect. About treating custom listing environments as verbatim text in the parser, I don't know of any way to do that since the parser does not have this information (the environment might be defined in some other file) when parsing a file, mainly for performance reasons. |
Beta Was this translation helpful? Give feedback.
-
I really love this plugin. Keep up the work!
There are only minor flaws that bother me from time to time.
When working with bigger projects I setup some custom environments for listings, that set the caption and label for the listing through parameters of the environement.
Something like this:
the use of it would look like this.
(I think warning supression for environments is something for another day ^^)
The problem then is, that the label string is not considered for autocompletion.
I did not find any documentation that showed a feature for this.
I am aware that it could be very tricky to implement an automated detection for such a feature as the syntax can differ for custom environments.
But I could imagine some sort of comment hint for the plugin when defining a new environment. Or globally for any environment with a given name.
e.g.
%lblhint env java #2
All in all this kind of feature could improve the correctness of warnings and errors.
Beta Was this translation helpful? Give feedback.
All reactions