albertromkes / tabout

Tab out of quotes, brackets, etc for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=albert.TabOut#review-details
MIT License
120 stars 29 forks source link

Feature Request: Make it tabout in " $" for Latex #27

Open Smawllie opened 3 years ago

Smawllie commented 3 years ago

Is it possible to add the feature of tabbing out of dollar signs, $$, for things like Latex? E.g. $2+2=4$

Smawllie commented 3 years ago

oh okay realized i could change it manually on my side

DanteSung commented 3 years ago

could you please post how to set it manually? Thanks in advance!

DanteSung commented 3 years ago

To those who find this page from Google: You could locate the js file in ~/.vscode/extensions/albert.tabout-0.2.0/out/src (Linux or Mac); %USERPROFILE%\.vscode\extensions\albert.tabout-0.2.0\out\src (WINDOWS) Edit charactersToTabOutFrom.js to whatever you want.

rayhagimoto commented 3 years ago

To those who find this page from Google: You could locate the js file in ~/.vscode/extensions/albert.tabout-0.2.0/out/src (Linux or Mac); %USERPROFILE%\.vscode\extensions\albert.tabout-0.2.0\out\src (WINDOWS) Edit charactersToTabOutFrom.js to whatever you want.

Thanks a lot for this! Was very useful.

gjirokastrelbasanit34 commented 2 years ago

Hello! How should I edit this charactersToTabOutFrom.js file to be able to tab out of environment consisting of multiple characters?

E. g. I need to be able to tab out of (La)TeX display mode $$...$$ and \[...\] environments, since only these are suppported in some special cases. I have just tried to add these lines: charArray.push(new CharacterSet_1.CharacterSet('\\[', '\\]')); and to tweak the order of the .push methods, but this doesn' have any effect.

I have so far just remedied my self by setting the extension to tab out of \....\ and [...] and this works by double tabbing, but this of course impedes blindtypesetting and it would be cool to be able to get out of these environment with single tabbing.

Thanks in advance for any response.