Can pressing the tab key put the cursor to the right of the right $ when it is in the math mode region?
($ ... | ... $ -> (press tab) -> $...$|)
or option to overwrite the right $ would also be good, the way ) is overwritten when cursor is to the left of ) in vscode. (|) -> (press )) -> )|. Pressing the -> key which is far from the alphabets is time-consuming..
Could you provide an example to make it clearer? I mean some steps like
$some math|$tab key$some math$|Yes, it's like your steps, alternatively:
$some math|$tab key or $ key$some math$| Also for tab an extra feature could be:
$som|e math$ (cursor at some position between $$)tab key$some math$|This could be extended to ** (italics), ** ** (bold), underline, etc.
Small but sweet feature
I found out from this issue that autocomplete pairs can be set by editing the language-configuration.json file of markdown (/usr/share/code/resources/app/extensions/markdown-basics/language-configuration.json). Adding
{
"open": "*",
"close": "*",
"notIn": [
"string"
]
},
{
"open": "$",
"close": "$",
"notIn": [
"string"
]
}
to autoClosingPairs is a temporary workaround.
I am not sure whether it will cause some problems with display mode $$ math $$.
BTW, you can use the shortcut ctrl+m to toggle math mode.
It seems to work only for single character pairs, setting * and $ as autocomplete pairs allows overwriting the ending character (like vscode does for parenthesis). Yes, I knew that.
I came across a nice extension Leaper. I think it is a good solution.
It seems to conflict with this extension...