开发者

Duplicate line command in Visual Studio 2005?

Is it possible to duplicate a line in Visual S开发者_JS百科tudio 2005? I briefly had ReSharper installed and then I used CTRL+D.

What I liked was that it didn't put that line into the clipboard memory.


There isn't a built-in command (afaik), but Christophe Herreman explains how to create a macro to do it here: "Duplicate line command for Visual Studio"


I was looking for a solution as well. A quick keyboard shortcut that will work on every IDE on Windows will be to use the HOME, END trick.

Move cursor to end of the line (Press End)
Press Shift+Home to highlight current line
Press Ctrl + C to copy
Press End.  Press Enter
Press Ctrl + V to paste.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜