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 format the document, the selected text, or just the current line? - #018

Ever been typing in the editor, and for whatever reason, the text isn’t indented properly on the line?  Instead of manually pressing backspace or tab for each line of text, just press Ctrl+K, Ctrl+D, which does a Format Document.

For larger files, you might just want to select the region that isn’t justified correctly, and do Ctrl+K, Ctrl+F.  This keyboard shortcut will also format the current line - no selection needed.

These commands are found under the Edit - Advanced menu

Format Document menu items

Technorati tags: ,
Posted: Monday, August 20, 2007 3:00 AM by saraford

Comments

stephen patten said:

Sara,

How do I get the white space to show up in 2005 / 2008?

Thank you,

Stephen

# August 20, 2007 9:31 AM

Ghanshyam Kumar said:

I have done the test

# August 20, 2007 11:50 AM

saraford said:

Go to the Edit - Advanced menu and select "View White space."  The tip is here http://blogs.msdn.com/saraford/archive/2007/07/30/did-you-know-how-to-view-visible-white-space.aspx

Thanks!

# August 20, 2007 11:53 AM

Ghanshyam Kumar said:

Hi my name is Ghanshyam and my e-mail ID will be ghanchaurasia@yahoo.co.in I need some notes regarding the testing can any on send me regarding the automated tools.

# August 20, 2007 12:08 PM

Jason Haley said:

# August 21, 2007 9:36 AM

Wessam Zeidan said:

Hi,

I can't get this to work with external js files in VS.NET 2008 beta 2. Is that a normal behavior, or is it a beta glitch?

Thanks

# August 22, 2007 7:51 AM

saraford said:

Hmm, let me investigate this.  I'll get back with you.  Thanks!

# August 22, 2007 12:35 PM

Visual Studio 2008 ワンポイント said:

エディタでテキストを入力しているときに、何かの理由でテキストが正しくインデントされなかったことはありませんか。テキストの各行で BackSpace キーや Tab キーを押す代わりに、 Ctrl + K

# July 13, 2008 11:48 PM

Секреты Visual Studio said:

У вас когда-нибудь случалось такое: вы набираете код в редакторе, а он по какой-то причине не соблюдает

# August 1, 2008 1:08 AM

Kai.Ma said:

节选自VisualStudio2008每日提示

#001注意增量搜索的威力 原文链接:

http://blogs.msdn.com/saraford/archive/200...

# October 2, 2008 12:56 PM

Benson-希 said:

# December 9, 2008 3:47 AM

. said:

코드가 들여쓰기와 같은 기본적인 서식을 따르지 않았다고 생각하시면, 영역을 선택하고 “Ctrl+E”를 누른 다음 “F”를 한 번 더 누르면 됩니다. [Visual Studio 한글

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