i_trope
i_trope

Reputation: 1604

Bind Ctrl+J to enter in sublime text 2

I would like to bind Ctrl+J to enter (return) in sublime text 2. I am unfamiliar with the command name for enter in sublime text, but I would like something like so in .sublime-keymap:

[
    {
        "keys": ["ctrl+j"],
        "command": <ENTER>
    }
]

Thanks

Upvotes: 1

Views: 263

Answers (1)

GinoF
GinoF

Reputation: 128

  1. Go to Preferences > Key Bindings - User
  2. Add the following:

{"keys": ["ctrl+j"], "command": "insert", "args": {"characters": "\n"}}

Upvotes: 2

Related Questions