Stan
Stan

Reputation: 38255

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?

Upvotes: 4

Views: 1250

Answers (1)

Jazzer
Jazzer

Reputation: 3053

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"
}

Upvotes: 9

Related Questions