Sublime Forum

Cycle through Completions like in TextMate

#1

Hello - when I press TAB to complete a word - it does not cycle through all possibilities (repeatedly pressing TAB) if there are more than possible completions. Is there another way to cycle through all options?

I am on Lion.

0 Likes

#2

Did you try “CTRL+Space”? - It outputs a list of all available “words”. For some reasons TAB doesn’t copy this feature. If you want to have the same behavior on “tab” as on “ctrl+space” just add the following lines to your Key Bindings file:

[code]
{ “keys”: “tab”], “command”: “auto_complete” },
{ “keys”: “tab”], “command”: “replace_completion_with_auto_complete”, “context”:

     { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
     { "key": "setting.tab_completion", "operator": "equal", "operand": true }
  ]

}[/code]

0 Likes

#3

Okay, this was stupid. Now i cannot indent anymore :smiley: - Ignore my solution, it does not work.

0 Likes

#4

Yeah - have tried the ctrl-space … Just would be nice to have TAB cycle through them instead - which would make it a lot easier and quicker to use. Thanks for those keybinding attempts though …

0 Likes