<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>Spaces or Tabs?</title><link>http://msmvps.com/blogs/peterritchie/archive/2008/05/26/spaces-or-tabs.aspx</link><description>In this day and age it seems silly to get into a discussion about whether your companies coding guidelines should have a section mandating either spaces or tabs for indents. Tabs are clearly more flexible, but I really don&amp;#39;t think it matters at all;</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Spaces or Tabs?</title><link>http://msmvps.com/blogs/peterritchie/archive/2008/05/26/spaces-or-tabs.aspx#1628744</link><pubDate>Thu, 29 May 2008 11:30:17 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1628744</guid><dc:creator>Nikola Malovic</dc:creator><description>&lt;p&gt;I think too this rule is kind-a-obsolete, but I don&amp;#39;t think it is meant to forbids the use of the Tab key. &lt;/p&gt;
&lt;p&gt;To me that rule is just recomendation that Visual Studio Tools\Options\Text Editor\C#\Tabs should have &amp;quot;Insert spaces&amp;quot; choosen, nothing else &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1628744" width="1" height="1"&gt;</description></item><item><title>re: Spaces or Tabs?</title><link>http://msmvps.com/blogs/peterritchie/archive/2008/05/26/spaces-or-tabs.aspx#1627942</link><pubDate>Tue, 27 May 2008 18:35:43 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1627942</guid><dc:creator>Alun Jones</dc:creator><description>&lt;p&gt;It&amp;#39;s clearly about time that source code editors ignored whitespace, too.&lt;/p&gt;
&lt;p&gt;Indentation should be enforced by code content, rather than the number of spaces or tabs, so that every time a programmer opens a source file, they see the actual code, indented to their own preferences, rather than the textual representation of it, indented to someone else&amp;#39;s.&lt;/p&gt;
&lt;p&gt;If I write &amp;quot;if (x) { y; z; } else a; b; c;&amp;quot; you should see:&lt;/p&gt;
&lt;p&gt;--begin--&lt;/p&gt;
&lt;p&gt;if (x) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;y;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;z;&lt;/p&gt;
&lt;p&gt;} else&lt;/p&gt;
&lt;p&gt; &amp;nbsp;a;&lt;/p&gt;
&lt;p&gt;b;&lt;/p&gt;
&lt;p&gt;c;&lt;/p&gt;
&lt;p&gt;--end--&lt;/p&gt;
&lt;p&gt;Whether you see this using tabs or spaces is immaterial, indentation should be displayed in the style selected by the programmer, and ignored by version control just as it is ignored by the compiler.&lt;/p&gt;
&lt;p&gt;[Obviously, this isn&amp;#39;t completely possible, as many preprocessor directives and macros will screw up indentation by introducing opening or closing braces]&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1627942" width="1" height="1"&gt;</description></item><item><title>re: Spaces or Tabs?</title><link>http://msmvps.com/blogs/peterritchie/archive/2008/05/26/spaces-or-tabs.aspx#1627585</link><pubDate>Mon, 26 May 2008 18:29:52 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1627585</guid><dc:creator>PeterRitchie</dc:creator><description>&lt;p&gt;Diff tools added ignore whitespace years ago.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1627585" width="1" height="1"&gt;</description></item><item><title>re: Spaces or Tabs?</title><link>http://msmvps.com/blogs/peterritchie/archive/2008/05/26/spaces-or-tabs.aspx#1627584</link><pubDate>Mon, 26 May 2008 18:20:12 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1627584</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;I think it matters more when you are doing source control diffs. &amp;nbsp;When users pick different tab/space settings in the IDE it makes a lot of noise for a manual merge.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1627584" width="1" height="1"&gt;</description></item><item><title>Microsoft's new C# style analyser and indents</title><link>http://msmvps.com/blogs/peterritchie/archive/2008/05/26/spaces-or-tabs.aspx#1627502</link><pubDate>Mon, 26 May 2008 14:36:42 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1627502</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You&amp;#39;ve been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1627502" width="1" height="1"&gt;</description></item></channel></rss>