Changing the template for inline math mode in TeXStudio
I used to follow Tobi's method for replacing the inline-math mode, until I found out how I can configure the default mapping. It's very easy actually :)
- Go to Options Menu > Tick "Show Advanced Options" at the bottom (inline with OK and Cancel buttons).
- In Texstudio Options list on the left, choose Menus.
- Go to Math (3rd top-level entry) > Inline math mode.
Replace the command with this (just remove the space on both sides):
$%|$
That's it. The %| is used to denote that the cursor will be placed there :)
I am late to the party, but hope it helps someone. Thank you.
I don’t know if it is possible to change the predefined template, but you can add a user macro and assign a shortcut to it. To create the script go to Macros > edit macros (I got only the german version, but it should be named equally):
and add a new “normal” script (mine is called “Inlinemathe”):
$%<math%>$
you can replace math
by whatever you want it is the text shown, when triggering the script. After creating the new script you must assign a short cut in Preferences > Short cuts > Macros
You can read more about user macros and scripts in the manual, which is available via the Help menu …