Skip to content
Thomas edited this page Jan 25, 2021 · 16 revisions

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.

xparse autocomplete

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

Autocompletion of required parameters

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).

required parameters autocomplete
required parameters environments

Autocompletion of commands from installed LaTeX packages.

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.

command autocomplete1
command autocomplete2

MiKTeX admin install

With MiKTeX, TeXiFy needs to extract zipped files in order to obtain source files of LaTeX packages. If you installed MiKTeX as admin, this will not be possible. The MiKTeX installer clearly warns about this:

miktex admin

This documentation has moved to https://hannah-sten.github.io/TeXiFy-IDEA

Clone this wiki locally