Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime 2 how to overwrite the Emmet plugin keyboard shortcuts

I want to disable the Ctrl+up, Ctrl+down to "increase/decrease number by 1" feature introduced by Emmet plugin, and would like to have the default behavior - move line up/down by 1 line - back.

This is how the keyboard shortcut defined in preference > package settings > Emmet > key bindings - default:

{
    "keys": ["ctrl+up"], 
    "args": {"action": "increment_number_by_1"}, 
    "command": "run_emmet_action", 
    "context": [{"key": "emmet_action_enabled.increment_number_by_1"}]
}, 

I added this in the preference > package settings > Emmet > key bindings - user:

{
    "keys": [""], 
    "args": {"action": "increment_number_by_1"},
    "command": "run_emmet_action", 
    "context": [{"key": "emmet_action_enabled.increment_number_by_1"} ] 
},

But this didn't overwrite the original Emmet setting. How should I disable this?

like image 959
Stan Avatar asked Jan 11 '23 21:01

Stan


1 Answers

Navigate to Preferences > Package Settings > Emmet > Settings – User.

Add the following to the file and save it:

{
    "disabled_keymap_actions": "increment_number_by_1, decrement_number_by_1"
}
like image 187
Jazzer Avatar answered Jan 29 '23 10:01

Jazzer