Sublime Forum

No tab indent on new line (shortcut)

#1

Before I make a plugin for this, can anyone say whether it’s possible to have a key binding (ie: alt+enter) execute a new line but not tab indent immediately after. I’d like the cursor to be at the start of the line on CR when alt+enter is pressed.

0 Likes

#2

It seems simpler to define a macro:

{"command": "move_to", "args": {"to": "hardeol"}}, {"command": "insert", "args": {"characters": "\n"}}, {"command": "move", "args": {"by": "lines", "forward": true}}, {"command": "move_to", "args": {"to": "hardbol"}} ]

0 Likes

#3

Kind of silly I completely forgot about macros when I posted.
Thanks!

0 Likes