Home Download Buy Blog Forum Support

Bracket space padding on autocomplete

Bracket space padding on autocomplete

Postby athanse on Sun Feb 03, 2013 11:55 am

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 '|'):

Code: Select all
someObject.SomeMehtod(|);


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

Code: Select all
someObject.SomeMehtod( | );


Thanks for your answers.
athanse
 
Posts: 14
Joined: Tue Jan 29, 2013 11:38 am

Re: Bracket space padding on autocomplete

Postby FichteFoll on Sun Feb 03, 2013 1:46 pm

Modify the default key binding for this and make the snippet contain two spaces.
FichteFoll
 
Posts: 408
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany

Re: Bracket space padding on autocomplete

Postby athanse on Sun Feb 03, 2013 2:14 pm

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 ?
athanse
 
Posts: 14
Joined: Tue Jan 29, 2013 11:38 am

Re: Bracket space padding on autocomplete

Postby quarnster on Sun Feb 03, 2013 2:39 pm

Do you think I have to modify the sources of the plugin?


Either that or you could tweak your SublimeAstyleFormatter settings to format the code automatically for you when you save.
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 21 guests