Home Download Buy Blog Forum Support

brace style

brace style

Postby ckmarkhsu on Tue Nov 27, 2012 2:51 pm

Hello,

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

the default brace style in sublime(snippest) is

Code: Select all
if(xxx){
   xxxx
}


May I change to this style?

Code: Select all
if(xxx)
{
   xxxx
}



thanks!
ckmarkhsu
 
Posts: 1
Joined: Tue Nov 27, 2012 2:47 pm

Re: brace style

Postby pier on Tue Nov 27, 2012 6:46 pm

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.

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


Change the scope to suit your needs.
pier
 
Posts: 92
Joined: Fri Jun 15, 2012 2:47 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 14 guests