Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'set keyboard settings under 'options' to ctl-d
- Sub DuplicateLine()
- Dim sel As TextSelection = DTE.ActiveDocument.Selection
- sel.StartOfLine(0) '' move to start
- sel.EndOfLine(True) '' select to end
- Dim line As String = sel.Text
- sel.EndOfLine(False) '' move to end
- sel.Insert(ControlChars.NewLine + line, vsInsertFlags.vsInsertFlagsCollapseToEnd)
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment