Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

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: ,
Posted: Friday, August 24, 2007 3:00 AM by saraford

Comments

Björn said:

"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 :]

# August 24, 2007 6:58 AM

htd said:

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

# August 24, 2007 9:32 AM

Jason Haley said:

# August 25, 2007 11:24 AM

Ed said:

Ditto on the shit-tab.  Easier to remember (opposite of tab).  Hit it a few times, or hold it down if you've got a whole lot of whitespace.

# September 5, 2007 8:39 PM

Visual Studio 2008 ワンポイント said:

[編集] メニューの [詳細] にある [左右スペースの削除] コマンドには、 Ctrl + K 、 Ctrl + バックスラッシュ ( \ ) キーが割り当てられています。 行の前の空白内の任意の場所にカーソルを置き、

# July 13, 2008 11:45 PM

Секреты Visual Studio said:

В меню "Edit - Advanced " вы найдете команду " Delete Horizontal White Space " (

# August 12, 2008 2:19 AM

xjb said:

# December 5, 2008 6:53 AM

xjb said:

# December 7, 2008 9:27 AM

. said:

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

# April 14, 2009 10:57 PM
New Comments to this post are disabled
Page view tracker