Home Download Buy Blog Forum Support

New line and line termination at the same time?

New line and line termination at the same time?

Postby gekushner on Wed Jul 20, 2011 11:28 pm

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!
gekushner
 
Posts: 8
Joined: Wed Jul 20, 2011 11:23 pm

Re: New line and line termination at the same time?

Postby gekushner on Tue Jul 26, 2011 3:30 am

Assuming the answer is no?
gekushner
 
Posts: 8
Joined: Wed Jul 20, 2011 11:23 pm

Re: New line and line termination at the same time?

Postby jps on Tue Jul 26, 2011 4:34 am

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).
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: New line and line termination at the same time?

Postby gekushner on Tue Jul 26, 2011 10:22 pm

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!
gekushner
 
Posts: 8
Joined: Wed Jul 20, 2011 11:23 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 17 guests