In Texmaker when you type the shortcut for \frac
, you get something like \frac{*}{*}
, but instead of asterisks, you have bullets. When you type something in the first pair of brackets, you can then hit tab to position the cursor between the second pair of brackets. How can I do this with TeXstudio?
2 Answers
On a Windows PC and on Ubuntu, it is Ctrl+Right arrow
On Mac OS X it is Command+Right arrow
⌘+⇒
It can be changed to Tab (⇥), but this is by default linked to another shortcut. If you go to the Preferences, "Shortcuts" tab, open up the "Editor" and the "Basic Key Mapping" list. Scroll down until you find
Next placeholder or one word right
Double click on the shortcut and click for opening the drop down menu; there you can find Tab as in the following picture:
Answer "Yes" to both the following questions. Relaunch TeXStudio.
-
1So how do I actually jump out of the placeholder? Everytime I type in a command (especially with empty arguments
\command{}
) the brackets just remain highlighted and prevent me from using Ctrl+Left/Right to move between words. Jan 29, 2014 at 1:07 -
1@Superbest: Even though it is a little late: You can get rid of the highlighting by pressing
enter
. This works either at the end of the highlighted string, or while it's completely marked.– MarkusMar 26, 2015 at 15:09
Just press Alt+Right, that is, hold Alt and press the “Right Arrow Key”.
Obviously, while the fields are highlighted you can move left using Alt+Left.
It works for me on my TeXstudio 2.5.2 (SVN 3651)
-
In my Windows installation of TeXstudio the default (I can’t remember to have changed that) is Ctrl+Left and Ctrl+Right. (See also chat transcript.) May 6, 2013 at 13:58
-
-
1@Tobi On my Mac (El Capitan, TeXstudio 2.11.2)
⌘
+←
/→
was mapped to "Move cursor to line start/end" by default. There was no mapping for "Next/Previous placeholder" by default. Oct 18, 2016 at 1:00