texlab
texlab copied to clipboard
\begin snippet for environments with arguments
The \begin snippet is not ideal for environments with arguments such as array because the tabstop is placed inside the environment after a newline, whereas one would want to fill in the arguments, e.g. \begin{array}{ccc}.
Unsure how this could be addressed. Perhaps the snippet should be \begin{$1}$0\n\\end{$1}, that is without an automatic newline?
That would be inconvenient for every other environment. I don't think there's a clear win here.
The other option I can think of is to have two matching snippets so the user can choose, with the default being the current one.