I want to set up a macro in TeXstudio for math mode which displays $*$ and places the cursor at position *. So far I have tried using $%|$ but upon triggering, this macro does not allow text insertion at the placeholder.
EDIT: The method above works fine if the macro shortcut is set to the default Shift+F1. However, changing the shortcut to another combination, as I would like to do, seems to be the cause of the problem.
%|
does not insert a placeholder but positions the cursor). After that, the macro is done. You can now regularly insert text at the cursor position by all editing actions (typing, pasting, etc.). – Tim Hoffmann Mar 13 '16 at 20:51