Is there a keyboard shortcut in TeXnicCenter to complete the current environment? In other words, it should add the appropriate \end{....}.
Asked
Active
Viewed 1.2k times
7
doncherry
- 54,637
Jeremy Hurwitz
- 2,139
- 5
- 19
- 14
1 Answers
5
(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
\begin{pumpkinpie}
Tralala
and have TeXniccenter automatically close the environment with
\end{pumpkinpie}
(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.
Joseph Wright
- 259,911
- 34
- 706
- 1,036
-
Thanks! I've marked this as the accepted answer. I've filed a feature request (https://sourceforge.net/tracker/?func=detail&aid=3371679&group_id=36323&atid=479426) 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 : http://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
-
I know it's been a while since this question was posted, but as a frequent user of TexnicCenter just wanted to ask if someone knows any update about it? I was just thinking on switching to some other editor but I'm so used to this one that makes the decision hard! thanks! – kentropy Jan 11 '20 at 21:03
Ctrl+Space. – Gonzalo Medina Jun 15 '11 at 18:07\begin{pumpkinpie} Tralalaand now want to end thepumpkinpieenvironment. @Jeremy's looking for a keyboard shortcut that inserts\end{pumpkinpie}at this point, or whatever environment might've been begun last. I don't know of any such feature, at least not in version 1RC1. – doncherry Jun 15 '11 at 19:24\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:29C-c ]closes the current environment. – Seamus Jul 01 '11 at 10:24