In Sublime Text 3, I want to disable the enter key to select an item from the autocomplete drop down, and only allow the tab key to do so.
I found this section in the inbuilt Default (OSX).sublime-keymap
file:
{ "keys": ["enter"], "command": "commit_completion", "context":
[
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab", "operand": false }
]
},
It seems that if I remove this from the config that enter will not select an item in the drop down. Unfortunately it is not recommended to change this file, and only to override it in my User
files. I don't think I actually can edit it without modifying the .app
contents.
I tried to override it by removing different sections, and also remove everything except "keys": ["enter"]
, but nothing seems to work.
How would I go about achieving this without modifying the inbuilt Default (OSX).sublime-keymap
and only the User/Default (OSX).sublime-keymap
file?