-
-
Notifications
You must be signed in to change notification settings - Fork 89
Autocomplete
TeXiFy supports autocomplete of labels, all commands from installed LaTeX packages, user defined commands, and (user defined) environments.
This includes for example commands you defined with the xparse
package.
If you are looking for a 'dumb' autocompletion mode to autocomplete on any word in the file/project, you can use Hippie completion: https://www.jetbrains.com/go/guide/tips/cyclic-expand-word/ and https://www.jetbrains.com/help/idea/auto-completing-code.html#hippie_completion
Since b0.6.9
When invoking autocomplete on a command or environment that takes required parameters, TeXiFy will insert a brace pair for each parameter. The caret is placed in the first pair, and you can use Tab to skip to the next pair. Since optional parameters are, well, optional, both the command with and without the optional parameters appear in the autocomplete list. If you always select the version with optional parameters, after a couple of times IntelliJ will remember your choice and show it first (so above the version without optional parameters).
Since b0.7.4
TeXiFy will look in your LaTeX installation for installed LaTeX packages, and then figures out what commands those packages provide to put those in the autocompletion. The indexing of all packages can take significant time (up to one minute for TeX Live full with thousands of packages) so this is persistent between restarts. If you want to reset the index, use File › Invalidate Caches / Restart.
Often, the extracted information includes the command parameters and some documentation about the command. However, this relies on package authors respecting the LaTeX conventions (using the doc package). If you find something incorrect, please let us know and then we can determine whether something needs to be improved in the LaTeX package or in TeXiFy.
This documentation has moved to https://hannah-sten.github.io/TeXiFy-IDEA