Answer the question
In order to leave comments, you need to log in
How to remap the Enter key in Sublime (for important business)?
Ask why?
But there is a default macro in Sublime (Ctrl + Enter), which FIRST goes to the end of the current line, and from there it already goes to a new line. Roughly speaking, it jumps to a clean new line from any position.
So, IMHO, it would be more practical if this command was on Enter, and the default transition to a new line from the current position was on Ctrl + Enter. In places, in general, change teams.
Copy from default.sublime-keymap like this
{ "keys": ["ctrl+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} },
{ "keys": ["enter"], "command": "commit_completion", "context":
[
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab", "operand": false }
]
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question