Cut or Delete the Current Line in Visual Studio

来源:互联网 发布:windows原版安装器 编辑:程序博客网 时间:2024/04/28 17:29

http://blogs.msdn.com/b/zainnab/archive/2010/04/04/cut-or-delete-the-current-line-vstipedit0038.aspx?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+zainnab+(Visual+Studio+Tips+and+Tricks)

Keyboard:  CTRL + L (cut text); SHIFT + DEL(cut text and carriage return); CTRL + X(cut text and carriage return); CTRL + SHIFT + L (delete)
Command:  Edit.LineCut; Edit.Cut; Edit.Cut; Edit.LineDelete
Versions:  2008,2010
Published:  4/4/2010
Code:  vstipEdit0038

 

You can quickly and easily do a cut operation by doing the following:

  1. Place your cursor on any line:
    image 
  2. Do one of the following commands:
    1. CTRL + L to cut the text only
    2. SHIFT + DEL or CTRL + X to cut the line and the carriage return at the end of the line

If you want to DELETE the line instead you can use CTRL + SHIFT + L

0 0
原创粉丝点击