Visual Studio 2005中的重复行命令?

时间:2009-11-26 11:41:21

标签: visual-studio-2005

是否可以在Visual Studio 2005中复制一行?我简要地安装了ReSharper,然后使用了CTRL+D

我喜欢的是它没有将该行放入剪贴板内存。

2 个答案:

答案 0 :(得分:3)

没有内置命令(afaik),但Christophe Herreman解释了如何创建宏来执行此操作:"Duplicate line command for Visual Studio"

答案 1 :(得分:1)

我也在寻找解决方案。在Windows上的每个IDE上都可以使用的快捷键盘快捷方式是使用HOME,END技巧。

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.