Sublime Forum

New line and line termination at the same time?

#1

Hi,

Is there a shortcut to enter a new line along with an end of line character? For example in c++, is there any way to enter a new line and a ‘;’ at the same time. Or for python, ‘:’?

thanks!

0 Likes

#2

Assuming the answer is no?

0 Likes

#3

There isn’t a way to do this out of the box, although you could do it with a macro (Take a look at Packages/Default/Add Line.sublime-macro for example, which is bound to command+enter or ctrl+enter depending on platform).

0 Likes

#4

Figured I could do a macro, but thought it would be built in. Amazing how much I got used to it from textmate and slickedit. I’ll take a look. thanks!

0 Likes