Compartilhar via


Did you know... How to delete horizontal white space at the beginning of a line? - #022

On the Edit – Advanced menu, you’ll find the Delete Horizontal White Space (interesting, i thought whitespace was one word) command bound to Ctrl+K, Ctrl+\ .

Delete Horizonta lWhite Space Command on Edit Advanced menu

To use, put the cursor anywhere in the whitespace that precedes the line, and press Ctrl+K, Ctrl+\ .  You can also select multiple lines and delete the whitespace at the beginning of each line.

Deleted horizontal whitespace

Technorati tags: VS2005Tip, VS2008Tip

Comments

  • Anonymous
    August 23, 2007
    "Ctrl+K, Ctrl+Alt+ß" is not a command (on a German keyboard the key is in the AltGr (expands to Ctrl+Alt) shift state of the ß key) and the (default) key combination used in my VC# Express setup is "ctrl+k, ctrl+^", where the ^ is a dead key, rendering the key combination unuseable... Fun :]

  • Anonymous
    August 24, 2007
    I just use shift+Tab, it's not one time delete but I personally prefer this more controlled way. ;)

  • Anonymous
    September 05, 2007
    The comment has been removed

  • Anonymous
    July 13, 2008
    The comment has been removed

  • Anonymous
    August 11, 2008
    В меню "Edit - Advanced " вы найдете команду " Delete Horizontal White Space " (

  • Anonymous
    December 04, 2008
    本篇包括tip21-tip30http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-3.html#021、调整字符、...

  • Anonymous
    December 07, 2008
    本篇包括tip21-tip30 http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-3.html #021、调整...

  • Anonymous
    April 14, 2009
    한 행의 앞부분에 있는 공백을 없애려면 행을 선택하고, “Ctrl+E”를 누른 다음, “”를 눌러 주세요. [Visual Studio 한글 버전 2008 화면] Sara Ford’s