Sublime Forum

Brace style

#1

Hello,

I have checked doc but I didn’t found how to change brace style.

the default brace style in sublime(snippest) is

if(xxx){ xxxx }

May I change to this style?

if(xxx) { xxxx }

thanks!

0 Likes

#2

That comes from a Snippet, in a package.

Make your own snippet to suit your needs, it will take 1 minute of your time.

In that case the snippet would be like this.

<snippet> <content><![CDATA[ if(${1:condition}) { $0 } ]]></content> <tabTrigger>if</tabTrigger> <scope>source.actionscript.3</scope> </snippet>

Change the scope to suit your needs.

0 Likes