在Visual Studio中是否有选择当前行的快捷方式? [英] Is there any shortcut to select the current line in Visual Studio?

查看:305
本文介绍了在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]

这篇关于在Visual Studio中是否有选择当前行的快捷方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆