<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/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>Rick van den Bosch - Blog : dotnetmag</title><link>http://bloggingabout.net/blogs/rick/archive/tags/dotnetmag/default.aspx</link><description>Tags: dotnetmag</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Visual Studio: Zero-impact Projects &amp; Cutting/copying empty lines</title><link>http://bloggingabout.net/blogs/rick/archive/2010/05/19/Visual-Studio_3A00_-Zero_2D00_impact-Projects-_2600_-Cutting_2F00_copying-empty-lines.aspx</link><pubDate>Wed, 19 May 2010 16:07:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:483290</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>0</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=483290</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2010/05/19/Visual-Studio_3A00_-Zero_2D00_impact-Projects-_2600_-Cutting_2F00_copying-empty-lines.aspx#comments</comments><description>&lt;p&gt;Yesterday I remembered&amp;nbsp;two&amp;nbsp;Visual Studio&amp;nbsp;options &lt;a href="http://blogs.msdn.com/saraford/"&gt;Sara Ford&lt;/a&gt; told about in a presentation of her I attended a while back.&amp;nbsp;Changing&amp;nbsp;them&amp;nbsp;made me happy... :)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Zero-impact projects&lt;/strong&gt;&lt;br /&gt;When I have to test something real quick, I tend to create a new project in Visual Studio and scribble some code to test whatever I want to test at that point. This causes my project directory to be&amp;nbsp;filled with projects&amp;nbsp;named &amp;#39;WindowsFormsApplication14&amp;#39; or something like that. To make this stop, go to Tools - Options - Projects and Solutions - General. Uncheck the option &amp;#39;Save new projects when created&amp;#39;. This way those newly made (and shortly used) projects aren&amp;#39;t saved untill you explicitly tell Visual Studio to do so. No more &amp;#39;WindowsFormsApplication63&amp;#39; for you! Unless you want to name it that way intentionally, of course...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cutting/copying empty lines&lt;/strong&gt;&lt;br /&gt;We probably all experienced this at one time or another: you select some code, copy it, go to an empty line where you want to past the code.......and you press CTRL + C by accident. With the default settings, you just copied an empty line and have lost the stuff you copied earlier. But with this next option, empty lines won&amp;#39;t get copied or cut anymore! Go to Tools - Options - Text Editor - All languages (or just the language you want to change this setting for) and deselect the option &amp;#39;Apply Cut or Copy commands to blank lines when there is no selection&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=483290" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/HowTo/default.aspx">HowTo</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/dotnetmag/default.aspx">dotnetmag</category></item><item><title>Visual Studio 2010: Close all documents</title><link>http://bloggingabout.net/blogs/rick/archive/2010/05/04/visual-studio-2010-close-all-documents.aspx</link><pubDate>Tue, 04 May 2010 16:31:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:483210</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>1</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=483210</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2010/05/04/visual-studio-2010-close-all-documents.aspx#comments</comments><description>&lt;p&gt;Sometimes it&amp;rsquo;s the little things that make you love a new product just a bit more.&lt;/p&gt;
&lt;p&gt;I tend to close stuff I don&amp;rsquo;t use anymore fairly quickly. Sometimes I even close an Explorer window or an application right after I used it, only to find I need it again in a few moments&amp;hellip; We all have our quirks, right ;)&lt;/p&gt;
&lt;p&gt;While developing I regularly close all the documents I have open in Visual Studio, especially when I am done with a specific task. And most of the time, I like to collapse all the projects and their subfolders too to keep a tidy work environment. I also have the option &amp;lsquo;Track Active Item in Solution Explorer&amp;rsquo; checked under &amp;lsquo;Tools&amp;rsquo; - &amp;lsquo;Options&amp;rsquo; - &amp;lsquo;Projects and solutions&amp;rsquo; &amp;ndash; &amp;lsquo;General&amp;rsquo;. Of course I have, I&amp;rsquo;d almost add&amp;hellip;&lt;/p&gt;
&lt;p&gt;In older versions of Visual Studio (while having the &amp;lsquo;Track Active Item in Solution Explorer&amp;rsquo; option turned on) choosing the &amp;lsquo;Close all documents&amp;rsquo; item in the &amp;lsquo;Windows&amp;rsquo; menu after having collapsed all the projects lead to one project opening up again. That was the project with the document that was active just before closing all the documents. The &amp;lsquo;Track Active Item in Solution Explorer&amp;rsquo; option seemed to squeeze in a &amp;lsquo;Look at that guy!&amp;rsquo; just before all the documents actually closed, making Visual Studio open up the project and highlighting the file again. Although I knew this happened, I somehow kept to my usual routine of collapsing all the projects and their subfolders before closing all documents, with the same result each time: me closing that one project (or those seven subfolders) twice.&lt;/p&gt;
&lt;p&gt;But&amp;hellip;&amp;hellip; no more in Visual Studio 2010! This newly built IDE seems to understand my way of work: no longer does Visual Studio (or the &amp;lsquo;Track Active Item in Solution Explorer option) open up the project of an active item when I choose &amp;lsquo;Close All Documents&amp;rsquo;. I&amp;rsquo;m not even sure if this was a specific choice or just a coincidental side-effect of the new IDE, but it makes me love Visual Studio 2010 just a bit more&amp;hellip; :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=483210" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/dotnetmag/default.aspx">dotnetmag</category></item><item><title>Visual Studio 2010 and the web.config </title><link>http://bloggingabout.net/blogs/rick/archive/2010/04/18/visual-studio-2010-and-the-web-config.aspx</link><pubDate>Sun, 18 Apr 2010 08:00:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:483119</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>0</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=483119</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2010/04/18/visual-studio-2010-and-the-web-config.aspx#comments</comments><description>&lt;p&gt;While working with Visual Studio 2010, a new feature caught my eye that isn&amp;#39;t communicated (strongly) in the &amp;quot;What&amp;#39;s new&amp;quot; lists you can find online. As part of the Visual Studio 2010 supports &amp;nbsp;multiple web.config files! Now we can create a separate web.config file for each configuration we have for our application. If you add a configuration through the configuration manager, you have the possibility to add a web.config file&amp;nbsp; for the new configuration too.&lt;/p&gt;
&lt;p&gt;A web application gets two configurations by default: a Debug and a Release configuration. When opening the plus sign in front of the web.config file, two extra files appear: web.debug.config and web.release.config. &amp;nbsp;Depending on the active configuration, Visual Stusio selects the correct version. &lt;/p&gt;
&lt;p&gt;The web.config file contains the default configuration. Configuration specific config files may add or remove settings or change current ones. This is done using simple transformation tags. &lt;/p&gt;
&lt;p&gt;For more information on transformations have a look at:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://blogs.msdn.com/webdevtools/archive/2009/05/04/web-deployment-web-config-transformation.aspx"&gt;Web Deployment: Web.Config Transformation&lt;/a&gt;&amp;nbsp;(Visual Web Developer Team Blog)&lt;/li&gt;
&lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/dd465326(VS.100).aspx"&gt;Web.config Transformation Syntax for Web Application Project Deployment&lt;/a&gt;&amp;nbsp;(MSDN library)&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=483119" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/dotnetmag/default.aspx">dotnetmag</category></item></channel></rss>