# Texmaker: how to auto-complete any environment?

Is there a way to get Texmaker to auto-complete any environment? I would like it to insert an \end{...} line for every \begin{...} line I write, regardless of the particular environment I opened. It seems to only do this with environments it recognizes (e.g. equation, align etc., but not self-defined environments).

• you can add your environments to autocomplete – touhami Apr 18 '15 at 19:39

One way to do this is to switch to Texmaker's fork TeXstudio which has got this feature built-in. http://texstudio.sourceforge.net/

• I tried it out - seems to be the best option. Thanks! – Koen Apr 19 '15 at 22:08

Texmaker allows you to insert your own tags (shortcuts : Shift+F1, ..., Shift+F10). These tags are defined with the "User - User Tags" menu. Notes :

If the code of the menu is "%environment", Texmaker will directly insert:

\begin{environment }
•
\end{environment }


and the cursor will jump directly to the "•" field.

http://www.xm1math.net/texmaker/doc.html