<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi all,</div><div><br>Is there a setting that I can adjust to maintain indentation level with autocompletion? I'm having trouble articulating what I mean, so perhaps I should provide an example.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">Suppose I have typed the following ($$$$ represents a tab).</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">\[</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new
 roman', 'new york', times, serif; background-color: transparent; font-style: normal;">$$$$A =</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">$$$$matrix</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">\]</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">I now hit tab to trigger my autocompletion for "matrix" and TeXworks does the following (* represents a placeholder that I can jump to using tab).</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">\[</div><div style="color: rgb(0, 0, 0); font-size:
 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">$$$$A =</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">$$$$\begin{matrix}</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">$$$$*</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">\end{matrix}</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">\]</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color:
 transparent; font-style: normal;">However, what I want is the following.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><div style="background-color: transparent;">\[</div><div style="background-color: transparent;">$$$$A =</div><div style="background-color: transparent;">$$$$\begin{matrix}</div><div style="background-color: transparent;">$$$$$$$$*</div><div style="background-color: transparent;">$$$$\end{matrix}</div><div style="background-color: transparent;">\]</div><div style="background-color: transparent;">Of course, I can make this particular example work by adding some tabs to the definition of my autocompletion. But what if matrix is two levels of indentations deep when I trigger autocompletion?</div><div style="background-color: transparent;"><div style="background-color: transparent;">\[</div><div style="background-color:
 transparent;">$$$$A =</div><div style="background-color: transparent;">$$$$$$$$matrix</div><div style="background-color: transparent;">\]</div><div style="background-color: transparent;">Then, my modified autocompletion would give</div><div style="background-color: transparent;"><div style="background-color: transparent;">\[</div><div style="background-color: transparent;">$$$$A =</div><div style="background-color: transparent;">$$$$$$$$\begin{matrix}</div><div style="background-color: transparent;">$$$$$$$$*</div><div style="background-color: transparent;">$$$$\end{matrix}</div><div style="background-color: transparent;">\]</div><div style="background-color: transparent;">when what I want is</div><div style="background-color: transparent;"><div style="background-color: transparent;">\[</div><div style="background-color: transparent;">$$$$A =</div><div style="background-color: transparent;">$$$$$$$$\begin{matrix}</div><div style="background-color:
 transparent;">$$$$$$$$$$$$*</div><div style="background-color: transparent;">$$$$$$$$\end{matrix}</div><div style="background-color: transparent;">\]</div><div style="background-color: transparent;">Hopefully you can see what I want. This is the way that vim snippets work, and I want the same behavior in TeXworks.</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;">Best,</div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;">Tim</div></div></div></div></div></div></body></html>