Sublime Forum

How do I force Enter to the very beginning of the next line?

#1

In Bluefish I can hit Ctrl-Enter and it will ignore auto-indent and put me at the beginning of the next line. I can’t figure out an equivalent in Sublime.

Also, in the following code in Bluefish I can double click the 300px text and it will just select the ‘300’ so I can type to replace the numbers but in Sublime double clicking ‘300px’ selects the whole thing including ‘px’. Is there any way to configure Sublime to behave the same as Bluefish in this respect?

#div_id { width: 300px; }

Thanks.

0 Likes

#2

Make a macro call it whatever.sublime-macro in your User folder


    {"command": "move_to", "args": {"to": "hardeol"}},
    {"command": "insert", "args": {"characters": "\n"}},
    {"command": "move_to", "args": {"to": "hardbol"}}
]

edit your user keymap and add

{ "keys": "ctrl+enter"], "command": "run_macro_file", "args": {"file": "Packages/User/whatever.sublime-macro"} },

I don’t know about the double click selection. If you find out please post back here. Thanks.

0 Likes

#3

That macro worked perfectly thanks!

I’ll let you know if I figure out the select thing.

0 Likes