在Visual Studio中是否有选择当前行的快捷方式?
我在VS的快捷方式列表中找不到此类功能.反正有吗?
I couldn't find such feature in VS's shortcut list. Is there anyway?
如果要复制一行,只需将光标放在该行中的某个位置,然后按 CTRL + C
If you want to copy a line, simply place cursor somewhere in that line and hit CTRL+C
要剪切整行 CTRL + X
@Sean找到了我想要的东西:
@Sean found what I was looking for:
要禁用此默认行为,请取消选中标记(或选中以重新启用)
To disable this default behavior remove the checkmark (or check to re-enable)
在没有选择的情况下将剪切或复制命令应用于空白行
Apply cut or copy commands to blank lines when there is no selection
从菜单栏中访问:工具|选项|文字编辑器|所有语言
Accessed from the menu bar: Tools | Options | Text Editor | All languages
您也可以在选项搜索框中输入copy
以便快速访问
You can also enter copy
into the options search box for quicker access
[在VS2008、2010、2017中进行了测试]
[Tested in VS2008, 2010, 2017]