Home Download Buy Blog Forum Support

Auto-insert comment on return

Auto-insert comment on return

Postby andreiz on Fri Aug 23, 2013 6:53 pm

Vim has something that I can't find in Sublime Text so far: auto-wrapping comments on Return, so that the comment leader is inserted automatically. Am I missing something?
andreiz
 
Posts: 3
Joined: Fri Aug 23, 2013 5:36 pm

Re: Auto-insert comment on return

Postby rchl on Fri Aug 23, 2013 7:56 pm

Not sure if I understand what you mean exactly but try DocBlockr plugin maybe.
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm

Re: Auto-insert comment on return

Postby andreiz on Fri Aug 23, 2013 9:10 pm

In vim, if you type:

Code: Select all
// This is the first line of the comment


and hit <return> at the end, it'll add a line and automatically insert "// " at the beginning so you can keep adding to the comment.
andreiz
 
Posts: 3
Joined: Fri Aug 23, 2013 5:36 pm

Re: Auto-insert comment on return

Postby rchl on Fri Aug 23, 2013 10:36 pm

Pretty sure DocBlockr does that.
rchl
 
Posts: 148
Joined: Fri Mar 04, 2011 11:02 pm


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 15 guests