Search code examples
autocompletesublimetext3sublimetext

how disabled auto complete on sublime text on specific key?


Each time when I press a key, autocomplete menu apear like this : autocomplete

That right, but how can I disabled this behaviour on specific key ?

In practice, when I press { for my css in my exemple, after I press ENTER immediatly for make new line (to close it with }), but instead go at line, it's validate the autocomplete (normal behaviour).

How disabled autocomplete on specials key like { [ ?


Solution

  • override key :

    { "keys": ["altgr+'"], "command": "insert_snippet", "args": {"contents": "{"}},
    

    TIPS: use sublime.log_input(True) in console to find real key pressed (in this case ' instead of {)