Is there a way to delete a line in Visual Studio without cutting it?

后端 未结 10 1392
刺人心
刺人心 2021-01-30 05:55

I want to delete a line just like hitting Ctrl + X without anything selected, but without saving the line to the copy stack. Is this possible?

I\'

相关标签:
10条回答
  • 2021-01-30 06:36

    Ctrl + Shift + L will delete the line and not copy to the clipboard.

    0 讨论(0)
  • 2021-01-30 06:40

    CTRL + L (Visual Studio 2019 Windows)

    0 讨论(0)
  • 2021-01-30 06:41

    On Visual Studio 2019 for Mac, it's CTRL + K to cut the whole line by default.

    0 讨论(0)
  • 2021-01-30 06:42

    Its Cmd + Shift + K on mac by default.

    But it can be modified according to user needs from the settings (Preferences -> Keyboard Shortcuts) -> search for Delete Line key value.

    0 讨论(0)
提交回复
热议问题