Sublime Forum

How to enable autocomplete only after certain amount of characters?


hi, please could anyone show me what changes i would need to make in the settings file so that autocomplete only kicks in after say for example, 5 characters have been typed in?



I don’t think there’s any setting that controls how many character it takes before the autocomplete opens. Short of turning off autocomplete and manually triggering it when you want it instead, probably the next best thing is the auto_complete_delay setting:

    // The delay, in ms, before the auto complete window is shown after typing
    "auto_complete_delay": 50,

If you goose the value up to say 1000 in your settings, then it will take a full second before the panel opens (in cases where Sublime displays it automatically), which would stop it from appearing as fast.



thanks, appreciate the support, i will use the method you suggested then