Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime how to cycle through the completion?

I found that tab can't cycle through completion like in Vim

then i search for other way of cycling through completion and many says that ctrl+space is available for this

however this doesn't work on me either, so i wonder if sublime has any way to do this

version: Sublime Text 3

many thanks!

like image 818
SPiCaRia Avatar asked Oct 22 '25 06:10

SPiCaRia


1 Answers

If you want to use tab in order to move down in the autocomplete list you only need to create the proper key-binding. You can get the desired info from the down key key-binding. Example:

{
    "keys": ["tab"],
    "command": "move",
    "args": {"by": "lines", "forward": true},
    "context":
        [
            { "key": "auto_complete_visible", "operator": "equal", "operand": true }
        ]
}

Note the context to avoid that tab moves by lines in other contexts.

EDIT: this question contains info about how to enable autocomplete cycle (jump from last to first entry and from first to last).

like image 178
sergioFC Avatar answered Oct 23 '25 20:10

sergioFC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!