Sublime Forum

Can I customize indent when input right bracket ')'

#1

Hi,

I really love to use sublime. Currently I’m using it to edit scheme file. But I not found a solution to customize the indent when input left bracket. I mean currently when I input ‘)’, it looks like:

( * 3
…(+ 3 3)
…)

but I want ‘)’ align with the ‘(’ :

( * 3
…(+ 3 3)
)

Is there any method to do this?

0 Likes

#2

You can edit the regex in the tmPreferences file that contains the keys decreaseIndentPattern and increaseIndentPattern for the syntax package you’re using.

0 Likes

#3

Thank you, it seems work, although I took long time to find out I need restart sublime to make change effective. :smile:

0 Likes

#4

I’ve been trying to do this, but I’m not exactly a reg exp master. Could anyone share a hint about how to achieve this?

Thanks!

0 Likes