texlab icon indicating copy to clipboard operation
texlab copied to clipboard

\begin snippet for environments with arguments

Open frangio opened this issue 1 year ago • 2 comments

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?

frangio avatar Jul 19 '24 19:07 frangio

That would be inconvenient for every other environment. I don't think there's a clear win here.

clason avatar Jul 19 '24 19:07 clason

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.

frangio avatar Jul 19 '24 20:07 frangio