GeneralAuto-completion for environments

General information and discussion about TeXnicCenter
Post Reply
melanie
Posts: 7
Joined: Fri Feb 16, 2007 11:43 am

Auto-completion for environments

Post by melanie »

Hello,
I have noticed that auto-completion works well for commands, i.e. it inserts the correct command and locates the cursor inside the curly braces, if any. For environments though, the completion is done in addition to the text already typed.
For example, typing

Code: Select all

\begin{it
+ Ctrl + Space
gives

Code: Select all

\begin{\begin{itemize}
	\item 
\end{itemize}
I don't think it is the expected behaviour...
mélanie

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
rockstar1707
Posts: 27
Joined: Wed Jan 17, 2007 12:35 pm

Auto-completion for environments

Post by rockstar1707 »

This autocomplete function works really good, but you have to use it a bit different. For this particular environment (itemize) you have to write only "item" for example and press CTRL + SPACE, and you'll get:

Code: Select all

\begin{itemize}
	\item 
\end{itemize}
I had problems with this in the beginning as well, but when you get used to it, it's much faster than writing "\begin{...}" etc.
melanie
Posts: 7
Joined: Fri Feb 16, 2007 11:43 am

Re: Auto-completion for environments

Post by melanie »

great ! thank you very much, I'm sure I will gain time now !
mélanie
Post Reply