Sublime Forum

How works auto complete

#1

Hi,
I’m a new sublime text user on Mac OSX. i used komodo before.
i’m about to buy it but i still have some doubt.

I can’t figure it out how works auto complete ?
When i start to write a php function no windows appears, and keyboards shortcuts doesn’t work.
You’ll maybe think i’m lazy but go to menu ‘edit > auto complete’ with mouse each time is boring.

I can’t find out any solutions on forum, so here is my questions :

  1. How can i change the shortcuts ? cause i think ^+space is protected on Mac,

  2. Is that a way to have an automatic auto complete ? i mean start to write ‘exp’ then window appears and offer suggestions like ‘explode’ :smiley:

Thanks

0 Likes

#2
  1. Under Sublime Text 2 | Preferences there are two options for Key Bindings. If you open the “Key Bindings - Default” one and search for “ctrl+space”, you can copy that line and paste it in to the “Key Bindings - User” preferences options (it’s in JSON format) you can change “ctrl+space” to be a key of your choosing (look in “Key Bindings - Default” for some other examples of key combinations to get a feel for it).

  2. No idea, sorry.

0 Likes

#3

thanks andy,

i could change auto complete shortcut and it’s working well !!

0 Likes

#4

If you prefer, you could also use the SublimeCodeIntel package so that autocomplete options appear automatically as you type.

0 Likes