<?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>Code cleanup</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx</link><description>I while back i wrote a post concerning what i called Informational Observations . These were snippets of information that the compiler could give you to help you work in a code focused way. For example, one observation we could make for you would be to</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title> Cyrus Blather Code cleanup | Indoor Grills</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#9689639</link><pubDate>Wed, 03 Jun 2009 09:18:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9689639</guid><dc:creator> Cyrus Blather Code cleanup | Indoor Grills</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://indoorgrillsrecipes.info/story.php?id=13114"&gt;http://indoorgrillsrecipes.info/story.php?id=13114&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9689639" width="1" height="1"&gt;</description></item><item><title>&amp;quot;Sort usings&amp;quot; command is always diabled | keyongtech</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#9362826</link><pubDate>Thu, 22 Jan 2009 07:46:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9362826</guid><dc:creator>&amp;quot;Sort usings&amp;quot; command is always diabled | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/2320265-sort-usings-command-is-always"&gt;http://www.keyongtech.com/2320265-sort-usings-command-is-always&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9362826" width="1" height="1"&gt;</description></item><item><title>re: Code cleanup</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#528800</link><pubDate>Thu, 09 Feb 2006 22:00:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:528800</guid><dc:creator>Adam Hearn</dc:creator><description>It's definitely a shame to see that the feature was only half added to the IDE :( A small feature but a very welcome one it would have been!&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=528800" width="1" height="1"&gt;</description></item><item><title>re: Code cleanup</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#496167</link><pubDate>Wed, 23 Nov 2005 12:25:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:496167</guid><dc:creator>Olivier Fermy</dc:creator><description>In VS 2005 Relase version, i have found &amp;quot;Sort usings&amp;quot; in &amp;quot;Tools-&amp;gt;Customize&amp;quot; in &amp;quot;Edit&amp;quot; category. But when i add the icon in the standard toolbar, it is always disabled ! Have you finally activate these tools ?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=496167" width="1" height="1"&gt;</description></item><item><title>smile</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#460126</link><pubDate>Fri, 02 Sep 2005 21:41:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:460126</guid><dc:creator>Best</dc:creator><description>u should give us more info&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=460126" width="1" height="1"&gt;</description></item><item><title>re: Do you </title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#400884</link><pubDate>Wed, 23 Mar 2005 11:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:400884</guid><dc:creator>Patrick Steele's .NET Blog</dc:creator><description>&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=400884" width="1" height="1"&gt;</description></item><item><title>re: Code cleanup</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#315909</link><pubDate>Wed, 15 Dec 2004 17:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:315909</guid><dc:creator>Mark Levison</dc:creator><description>I would love to see this in Whidbey or as part of the TweakC# tool that you mentioned earlier.&lt;br&gt;&lt;br&gt;How would we use it?  Today I'm oftening tidying up using statements where the code has been updated, so the namespace is no longer in use - but the using statements remain.&lt;br&gt;&lt;br&gt;In addition no one of my other co-workers are pedantic enough to care about the order using statements.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=315909" width="1" height="1"&gt;</description></item><item><title>re: Code cleanup</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#275902</link><pubDate>Mon, 06 Dec 2004 21:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:275902</guid><dc:creator>Cyrus Najmabadi</dc:creator><description>Frederik: Thanks! That helps a lot.&lt;br&gt;&lt;br&gt;---&lt;br&gt;&lt;br&gt;&amp;quot;Whidbey also has the code snippets tool. I tend to use full type names in snippets, because, well, they can end up anywhere in my code and I don't want to bother about the 'using' statements at that time. The Simplify Type Names comes in handy here as well. &amp;quot;&lt;br&gt;&lt;br&gt;We addressed that problem in whidbey.  There is a SimpleTypeName function that you can use with snippets.  It's how we make sure that we'll dump the best name for global::System.NotImplementedException into your code.&lt;br&gt;&lt;br&gt;Check out any of the refactoring snippets and you'll see how to do this.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=275902" width="1" height="1"&gt;</description></item><item><title>re: Code cleanup</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#275889</link><pubDate>Mon, 06 Dec 2004 20:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:275889</guid><dc:creator>Frederik</dc:creator><description>Cyrus: I prefer keeping type names short. I prefer to see &amp;quot;SqlConnection&amp;quot; in my code over &amp;quot;System.Data.SqlClient.SqlConnection&amp;quot;, for example. However, it happens to my that I do use the fully qualified name of a type, only to find out later that I use that specific type or more types from the same namespaces quite often in the same class. That's where the Simplify Type Names comes in handy.&lt;br&gt;&lt;br&gt;Another use scenario is when you copy and paste code - example code, for example, might be using full type names a lot. I did spend time simplifying type names before.&lt;br&gt;&lt;br&gt;Whidbey also has the code snippets tool. I tend to use full type names in snippets, because, well, they can end up anywhere in my code and I don't want to bother about the 'using' statements at that time. The Simplify Type Names comes in handy here as well.&lt;br&gt;&lt;br&gt;Does that help you?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=275889" width="1" height="1"&gt;</description></item><item><title>re: Code cleanup</title><link>http://blogs.msdn.com/b/cyrusn/archive/2004/12/04/275043.aspx#275706</link><pubDate>Mon, 06 Dec 2004 15:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:275706</guid><dc:creator>Cyrus Najmabadi</dc:creator><description>Nick: There is no penalty except for added conceptual confusion.  Some people ask themselves &amp;quot;why is this using here, do i need it?&amp;quot;.  Other's prefer code to be as tidy as possible and want to remove as much extraneous information as possible.&lt;br&gt;&lt;br&gt;The default projects include certain things like System.Collections.Generic because we find that people are always using collections and thus it helps them since the types from those usings will now be in the completion lists.&lt;br&gt;&lt;br&gt;&amp;quot;I guess I would think there are other issues that are much more worth your time than this. &amp;quot;&lt;br&gt;&lt;br&gt;Of course.  But i did this on my own time jsut for the fun of it.&lt;br&gt;&lt;br&gt;&amp;quot;By the way, don't ever, ever do incremental compilation for C#... That's one of the things that I hate about VB.NET. I think that if you were to observe C-style programmers (vs. VB-style) that you would find that the majority of them write their brand new code ahead of the compiler... calling functions and classes that don't exist yet, and find incremental compliation to be more of a burden then a help. &amp;quot;&lt;br&gt;&lt;br&gt;I don't see how increment compilation hurts you here.  Could you expand on this?  What's wrong with the compiler saying &amp;quot;you're calling a non-existent method, would you like me to generate it for you?&amp;quot;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=275706" width="1" height="1"&gt;</description></item></channel></rss>