<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Visual Studio Tip : AutoFormat Your Code</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx</link><description>Has this ever happened to you? You find some code on the Net so you copy and paste it into a source file within Visual Studio and notice that all the formatting is somehow messed up. For example. some lines might be indented while others are not. To have</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Visual Studio Tip : AutoFormat Your Code</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx#7062748</link><pubDate>Fri, 11 Jan 2008 00:29:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7062748</guid><dc:creator>Doug</dc:creator><description>&lt;p&gt;Ctrl-K, Ctrl-D also works to format the current file without the select all required.&lt;/p&gt;
</description></item><item><title>Shortcut CTRL+K+F e CTRL+K+D</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx#7063137</link><pubDate>Fri, 11 Jan 2008 01:02:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7063137</guid><dc:creator>Maurizio Tammacco's blog</dc:creator><description>&lt;p&gt;Questo shortcut &amp;#232; davvero utilissimo: CTRL+K+F premuto all'interno di Visual Studio con attiva una finestra...&lt;/p&gt;
</description></item><item><title>re: Visual Studio Tip : AutoFormat Your Code</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx#7063402</link><pubDate>Fri, 11 Jan 2008 01:25:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7063402</guid><dc:creator>markhsch</dc:creator><description>&lt;p&gt;Doug,&lt;/p&gt;
&lt;p&gt;Hmm, I try CTRL+K, CTRL+D and I get a message in the status bar saying &amp;quot;The key combination (CTRL+K,CTRL+D) is bound to command (Form&amp;amp;at Document) which is not currently available.&amp;quot; Wonder why that is? Maybe that doesn't work for C++.&lt;/p&gt;
</description></item><item><title>re: Visual Studio Tip : AutoFormat Your Code</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx#7064154</link><pubDate>Fri, 11 Jan 2008 02:41:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7064154</guid><dc:creator>Chris Eargle</dc:creator><description>&lt;p&gt;Here's a macro that will format an entire solution for you:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.kodefuguru.com/post/Format-Solution.aspx"&gt;http://www.kodefuguru.com/post/Format-Solution.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Visual Studio Tip : AutoFormat Your Code</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx#7135883</link><pubDate>Thu, 17 Jan 2008 01:50:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7135883</guid><dc:creator>Raj Kaimal</dc:creator><description>&lt;p&gt;I think this depends on the &amp;quot;keyboard mapping scheme&amp;quot; you selected when you started VS the first time. For me Ctrl + E, D maps to &amp;nbsp;Edit.FormatDocument. Go to Tools - Options - Environment - Keyboard and type in Edit.FormatDocument to see what it maps to.&lt;/p&gt;
</description></item><item><title>re: Visual Studio Tip : AutoFormat Your Code</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx#7508282</link><pubDate>Thu, 07 Feb 2008 10:14:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7508282</guid><dc:creator>Franci Penov</dc:creator><description>&lt;p&gt;Ctrl-K, Ctlr-F works on code files (C++, C#, VB), Ctrl-K, Ctrl-D works on document files (HTML, XML, XAML)&lt;/p&gt;
</description></item><item><title>HowTo change formatign options?</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx#8183670</link><pubDate>Thu, 13 Mar 2008 21:46:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8183670</guid><dc:creator>Fosna</dc:creator><description>&lt;p&gt;Where do I find dialog box where I can change fomrating options such as curly prackets positiong?&lt;/p&gt;
</description></item><item><title>re: Visual Studio Tip : AutoFormat Your Code</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx#8348981</link><pubDate>Wed, 02 Apr 2008 00:20:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8348981</guid><dc:creator>Erik</dc:creator><description>&lt;p&gt;Fosna, Here's how to change formatting in Visual Studio 2008:&lt;/p&gt;
&lt;p&gt;* Go to Tools-&amp;gt;Options...&lt;/p&gt;
&lt;p&gt;* Check &amp;quot;Show all settings&amp;quot;&lt;/p&gt;
&lt;p&gt;* Navigate to Text Editor -&amp;gt; C# (or whatever language) -&amp;gt; Formatting&lt;/p&gt;
</description></item><item><title>re: Visual Studio Tip : AutoFormat Your Code</title><link>http://blogs.msdn.com/markhsch/archive/2008/01/10/visual-studio-tip-autoformat-your-code.aspx#9701699</link><pubDate>Fri, 05 Jun 2009 20:47:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9701699</guid><dc:creator>A_Li_N</dc:creator><description>&lt;p&gt;Kinda a related question:&lt;/p&gt;
&lt;p&gt;For some reason when I do auto-format and then save the file, my asp:Table, asp:TableRow, etc (all the table tags) get smooched smooched together. &lt;/p&gt;
&lt;p&gt;So if I had:&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:Table&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;asp:TableRow&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:TableCell&amp;gt;Content 1&amp;lt;/asp:TableCell&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:TableCell&amp;gt;Content 2&amp;lt;/asp:TableCell&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;/asp:TableRow&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;asp:TableRow&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:TableCell&amp;gt;Content 3&amp;lt;/asp:TableCell&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:TableCell&amp;gt;Content 4&amp;lt;/asp:TableCell&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;/asp:TableRow&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/asp:Table&amp;gt;&lt;/p&gt;
&lt;p&gt;after the format and save, it would look like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:Table&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;lt;asp:TableRow&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:TableCell&amp;gt;Content 1&amp;lt;/asp:TableCell&amp;gt;&amp;lt;asp:TableCell&amp;gt;Content 2&amp;lt;/asp:TableCell&amp;gt;&amp;lt;/asp:TableRow&amp;gt;&amp;lt;asp:TableRow&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:TableCell&amp;gt;Content 3&amp;lt;/asp:TableCell&amp;gt;&amp;lt;asp:TableCell&amp;gt;Content 4&amp;lt;/asp:TableCell&amp;gt;&amp;lt;/asp:TableRow&amp;gt;&amp;lt;/asp:Table&amp;gt;&lt;/p&gt;
&lt;p&gt;Can you think of any reason it does this and maybe a way I could fix it? &amp;nbsp;All tags include the required items (Table tag includes the 'runat=&amp;quot;server&amp;quot;', Cells and Rows do not)&lt;/p&gt;
</description></item></channel></rss>