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.
Best Answer
According to the answer here and section 4.5.1 Text macros of the TeXstudio manual
does the trick.
When defining macros in TeXstudio,
%|
(spoken: percent pipe) tells the IDE where to put the cursor, after the macro is triggered. Macros in TeXstudio are defined in