Home Download Buy Blog Forum Support

Autocomplete curly brace

Autocomplete curly brace

Postby mybigman on Sat Dec 03, 2011 12:50 pm

Hi All,

I have just come across ST2 and must say seems like a great application and will certainly evaluate alot more.

Is there any way to when using the autocomplete (keyword -> tab) to not have it hug the curly brace and to place it on a new line?

Code: Select all
foreach ($variable as $key => $value) {
   # code...

Code: Select all
foreach ($variable as $key => $value)
   # code...

Ideally this would be a global setting and not a per function setting...

Any help would be appreciated.

Posts: 1
Joined: Sat Dec 03, 2011 12:41 pm

Re: Autocomplete curly brace

Postby C0D312 on Sat Dec 03, 2011 1:47 pm

You'll have to edit the .sublime-snippet file. You can drag PHP folder from your packages directory (Preferences > Browse Packages) and do a find and replace to fix the problem across all the snippets if you need to.
Posts: 1056
Joined: Sun Jul 10, 2011 3:23 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 24 guests