TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a keyboard shortcut in TeXnicCenter to complete the current environment? In other words, it should add the appropriate \end{....}.

share|improve this question
Press Ctrl + Space. – Gonzalo Medina Jun 15 '11 at 18:07
Have a look at Tips on code completion on TeXnicCenter. – Stefan Kottwitz Jun 15 '11 at 18:35
@doncherry: in that case, I'll recommend to always type \begin{<env>} \end{<env>} at once (and in this circumstances auto completion can be handy), and fill the contents afterwards; this helps to prevent forgetting to end an environment. – Gonzalo Medina Jun 15 '11 at 19:29
Obligatory emacs answer: C-c ] closes the current environment. – Seamus Jul 1 '11 at 10:24
Sadly, it does seem that the correct answer is "there isn't". Oh well. It's the main feature I miss from Emacs. – Jeremy Hurwitz Jul 6 '11 at 22:48
up vote 4 down vote accepted

(Summarising comments as an answer, so that this question is 'answered'.)

It seems that you are looking for a keyboard shortcut to take the input


and have TeXniccenter automatically close the environment with


(i.e. to close whatever the last environment opened was.) At present, the answer is 'TeXniceenter does not have such a function'. Perhaps lodge a feature request.

share|improve this answer
Thanks! I've marked this as the accepted answer. I've filed a feature request (sourceforge.net/tracker/…) in case anyone else is interested. – Jeremy Hurwitz Jul 19 '11 at 18:38
Since the feature request above was closed by mistake, I filed a new one : sourceforge.net/p/texniccenter/user-reports/1490 . posting it here as it is one of the top google results – imj Aug 16 '14 at 12:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.