Is there any shortcut to select the current line in Visual Studio?

前端 未结 12 784
予麋鹿
予麋鹿 2020-12-15 03:23

I couldn\'t find such feature in VS\'s shortcut list. Is there anyway?

12条回答
  •  生来不讨喜
    2020-12-15 03:42

    If you want to copy a line, simply place cursor somewhere in that line and hit CTRL+C

    To cut an entire line CTRL+X

    @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

    You can also enter copy into the options search box for quicker access

    [Tested in VS2008, 2010, 2017]

提交回复
热议问题