Sublime Forum

Bracket space padding on autocomplete

#1

Hi there !
I was wondering if it is possible to have space padding around parenthesis on the inside only when the auto-complete is triggered.
Current action when the auto-completion is triggered (the place of the cursor is represented by the pipe symbol ‘|’):

someObject.SomeMehtod(|);

Is it possibe to change this default behavior to have this:

someObject.SomeMehtod( | );

Thanks for your answers.

0 Likes

#2

Modify the default key binding for this and make the snippet contain two spaces.

0 Likes

#3

First of all, thank you for your response.
I just realized that it is not about sublime text autocompletion but it is about the SublimeCLang plugin autocompletion.
Any idea how to do that ? Do you think I have to modify the sources of the plugin ?

0 Likes

#4

Either that or you could tweak your SublimeAstyleFormatter settings to format the code automatically for you when you save.

0 Likes