10

When I write

\begin{enumerate}

sublime text does not auto complete it to

\begin{enumerate} \item \end{enumerate} 

like I would expect. Is there a way to achieve this?

17

If you type enum and press Tab you will get this:

enter image description here

Similarly type item and press Tab to get

enter image description here

To put a new \item press Shift + Enter at the end of line

enter image description here

For a quick view of these short cuts Press Tools and then Snippets (Cntrl+L, Cntrl+S) to get

enter image description here

  • Your answer is much better than mine... I had no idea about that shortcut! Thank you! :-) – darthbith Jan 13 '15 at 12:57
  • Are you not using WinEdt as your editor anymore? – karlkoeller Jan 13 '15 at 13:25
  • @karlkoeller I do but reduced the usage as I started learning other editors (mainly emacs). But winedt always when on windoze!. :) – user11232 Jan 13 '15 at 13:27
5

Type begin (without the \), then push TAB. This will complete the environment so you will see

\begin{env}

\end{env}

and the cursor will be highlighting both envs. You can then type enumerate, which will fill enumerate into both env spots, and add an item in the middle:

\begin{enumerate}
    item 
\end{enumerate}

Unfortunately, it seems there is a bug that the \ before item is not added automatically. The same works for itemize.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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