How to define shortcut key for Reindent on sublimetext 3

keyboard shortcuts

I'm on Ubuntu and I'd like to make a shortcut key for Edit > Line > Reindent.

I've seen the docs but could not figure out where to put the json definition. So appreciate your hints.

Best Answer

Here is how you can add this shortcut in Sublime:

  1. Go to Preferences > Key Bindings-User
  2. Add the below key value pairs to the existing JSON array (mostly it would be empty previously):

    { "keys": ["ctrl+shift+r"], "command": "reindent"}
    

To make this shortcut work, you need to have the syntax highlighter plugin already installed for the particular programming language you are using.

Related Question