Sublime Forum

Open Curly Bracket in same line when using auto complete

#1

Hi Guys,

When i use the auto complete, the open bracket “{” goes do a new line:

if()
{

}

And i want the open bracket in the same line of the function name, like this:

if() {

}

How can i configure the Sublime Text to do this???

0 Likes

#2

which language syntax is this for? I notice that JavaScript, for example, doesn’t put the opening curly brace on a new line.

0 Likes

#3

Im using with C language.

0 Likes

#4
  1. Install PackageResourceViewer from Package Control
  2. Open the Command Palette
  3. Type PackageResourceViewer - Open Resource
  4. Select C++
  5. Select if-..-(if).sublime-snippet
  6. Move the { character to where you want it
  7. Save the file
4 Likes

#5

Many Thanks friend! It resolved the problem :smile:

0 Likes

#6

@kingkeith Thanks! It helps me a lot modifying the default behavior.

0 Likes