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
Technorati tags: VS2005Tip, VS2008Tip
Comments
Anonymous
August 19, 2007
PingBack from http://msdnrss.thecoderblogs.com/2007/08/20/Anonymous
August 20, 2007
Sara, How do I get the white space to show up in 2005 / 2008? Thank you, StephenAnonymous
August 20, 2007
I have done the testAnonymous
August 20, 2007
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!Anonymous
August 20, 2007
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.Anonymous
August 21, 2007
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? ThanksAnonymous
August 22, 2007
Hmm, let me investigate this. I'll get back with you. Thanks!Anonymous
July 13, 2008
The comment has been removedAnonymous
July 31, 2008
У вас когда-нибудь случалось такое: вы набираете код в редакторе, а он по какой-то причине не соблюдаетAnonymous
October 02, 2008
节选自VisualStudio2008每日提示 #001注意增量搜索的威力 原文链接: http://blogs.msdn.com/saraford/archive/200...Anonymous
December 08, 2008
#011、全屏模式 原文地址:http://blogs.msdn.com/saraford/archive/2007/08/09/did-you-know-visual-studio-has-a-...Anonymous
April 14, 2009
코드가 들여쓰기와 같은 기본적인 서식을 따르지 않았다고 생각하시면, 영역을 선택하고 “Ctrl+E”를 누른 다음 “F”를 한 번 더 누르면 됩니다. [Visual Studio 한글