Sublime Forum

How to modify default tab autocomplete

#1

Hi all, is there any way I can modify that when i type (in Java)

if (then press tab for autocomplete)

i get

if () {

}

can i modify it so i can get instead

if ()
{

}

Many thanks!

0 Likes

#2

@mark1 compare https://github.com/sublimehq/Packages/issues/131

1 Like

#3

This seems useful. Although I don’t know what to do with it.
(I’ve used snippets before though)

0 Likes

#4

You can open the .\Packages\Java.sublime-package file as a ZIP, then edit the desired snippets/completions therein. When done repackage as ZIP and rename with *.sublime-package.

Maybe also clear the .\Data\Cache.

0 Likes

#5

THANK YOU

in java its a bit different (java is not the same as javascript)

I simply modified
for.sublime-snippet
else-if.sublime-snippet
if.sublime-snippet

which are in .\Packages\Java and it worked

thanks

0 Likes

#6

:+1: enjoy!

0 Likes