Skip to content

How to create a TeXstudio macro to remove extra brackets? #1884

Answered by sunderme
fernandozucatelli asked this question in Q&A
Discussion options

You must be logged in to vote
%SCRIPT
editor.replace(/{{(.*)}}/,"g","{\\1}")

seems to work.

scope is optional and can be left out if it is all.
The cursor needs to be set differently in txs4.x , see manual.

... and you javascript regex misses the brackets ().

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fernandozucatelli
Comment options

Answer selected by fernandozucatelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants