however looking up my questions using the usual suspects (Google, search function etc.) I could not find an answer/solution to the following task (potentially I don't know the proper name of the task I am looking for XD ):
In Texstudio I want to create my own macro/snippet for a figure environment, where the cursor is placed at a certain position to enter the filename. However I would like to have the same text filled in another position while I type (such as in the cmd+E environment snippet).
\begin{figure}[t]
\centering
\includegraphics{pics/%<%>}
\caption{}
\label{fig:%<%>}
\end{figure}
The /%<%> places my cursor at the desired position, but I am not able to figure out how to autofill this text in the label command while typing.
The second /%<%> just provides another cursor position which I can access manually.
I appreciate any help. So thanks in advance!
Best Answer
For clarification
Multiple cursors are not supported. This would be something like
Mirrored placeholders are supported. This is an undocumented function and may change in the future without further notice.