Introduction A few hours ago, I installed Visual Studio 2005, aka "Whidbey." So, I thought, "why not share this knowledge with you guys?" In this article, I will share my first Whidbey experiences with you. We will go through the installation process together. I will also present some screenshots that are important to the new features. After that, we will start Visual Studio for the first time and see the new features. I have not started Visual Studio yet because I want to do this together with you Installing Whidbey It took me approximately 50 minutes to install Whidbey on my laptop My laptop contains an AMD Mobile processor with 1.4 GHz and 512 MB RAM The following components were installed...:
ComponentSpace RequiredMicrosoft Data Access Components 9.03.10 MBMicrosoft .NET Framework 2.0137.00 MBMicrosoft Visual J # .NET Redistributable Package 2.049.50 MBMicrosoft Visual Studio Enterprise Architect Edition 20051.67 GB For these components, you will require 2.4 GB space on your HD. After this part Of the installation is completion, you have the opportunity to install the msdn library. You can choose among the Following Options:
InstallationSpace RequiredFull1.9 GBCustomDepends on your choiceScoped (recommended) 412 MB For my purposes, I chose the recommended option, Scoped. It took only nine minutes to install the MSDN. Uninstalling Whidbey Uninstalling Visual Studio did not take much time-only 18 minutes and it was gone. The uninstaller removed most installed components except the Microsoft Data Access Components. If you try to uninstall this component via the Add / Remove Programs panel, you will see a window with two options. The first one helps you to re- . install this component and the second one, to remove, is not selectable It shows the following message, "Remove (use mdacrb.exe to do remove)", which is at the following location: C: / Program Files / Common Files / Microsoft Shared / MDAC Rollback / Uninstalling this component took only five minutes. If you uninstall Visual Studio, do not be surprised that MSDN is still on your HD. Uninstalling MSDN also took me only five minutes. Of course, this depends on which opt ion you chose when you installed the MSDN. The Look and Feel of Visual Studio 2005 ( "Whidbey") Now that we have discussed the installation and requirement issues for Visual Studio 2005 ( "Whidbey"), let us start Visual Studio for the first . time When you start Visual Studio for the first time, you will see the following window:. Here, you will have to choose your primary development language before Visual Studio can start After selecting the language, you will see the new IDE The new. Ide Does Not Contain Any Welcome Window With your projects, AS in Visual Studio .NET 2003. The New Look of the Ide IS Really Nice
nevertheless, you need to get used to it, especially with the dark-grey colors. Docking Windows While playing with the IDE, I discovered a very cool feature. When you drag the output bar, some arrows appear in the middle, top / bottom , and left / right. Just drop the output bar over one of the arrows and it will be placed there. This can be done with any bar you can see in the IDE, whether it is the solution explorer, the dynamic help, or anything .?. else-it does not matter Do you see the hidden toolbox in the screenshot above, on the left side This is a feature that also applies to each bar Just right-click on any bar and select auto hide; it will disappear if you do not need it! For example, if you need the solution bar, just hover over the hidden bar and it will appear. Intellisense / Intellitasks I heard a lot of hype about the extended features of Intellisense in Visual Studio 2005, but unfortunately I Could Not get Them To Work for Me. A Simple Ctrl Space Didn't Work! I Could Not Un .. Derstand the problem However, the solution was simple After installing Visual Studio, I did not reboot my system After a reboot, the CTRL Space key combination worked Intellisense is not a new a feature in Visual Studio;.. However, it is extended. For example, Intellisense also will be available in the web.config files. Intellitasks are new in this version. Intellitasks enable you to use common code in your projects. At first, I did not get how they work, but after Some study on the net, it is clear. for example; you can type for and press the tab key two time;
the specified code snippet for the shortcut will be added to your code If you want to add your own snippet to the Intellitask feature, you can do it through the Code snippet manager (Tools menu -> Code snippets manager).. You define your own Snippet forin an XML file. if you have't seen a defined snippet before, here is the class snippet: xml version = "1.0" eNCoding = "UTF-8"?>
Snippettypes>
Header>
Literal>
Declarations>
{ $ SELECTED $$ End $ }]]> Code> Snippet> CODESNIPPET> Refactor Refactor is also a very nice feature. With Refactor, you can extract methods, encapsulate fields, reorder parameters, remove parameters, surround with common statements, insert expansions, and much, much more. Let's take a look at extract method. With this feature, you can mark some code and create a new function. The marked code then will be moved to the new function and the new function will be called from the place where the original code was placed. to achieve this, mark the desired code, press the right mouse button, and select Extract Method from the Refactor menu-as shown in the following screenshot. After that, a new window will appear where you can enter the new name of the function. you can not change the function to public nor you . can add parameters to the function If you want to do this, you have to edit the function manually All you can specify is the name of the function After pressing the OK button, your code should be changed to the following:.. As you Can S ee, this is a very useful feature, especially when you need to move your existing code from one function to a new one. Another useful feature is Surround With. It allows you to surround some code with some common code statements, such as if. .else, try..catch, and so forth So, if, for example, you have the following code: and use the menu shown in the screenshot above, you will get the following result There is also feature called rename; it.. lets you rename your objects, variables, and so on. To learn a bit more about the rename feature, let's consider an example. When I first worked with this feature, I created a variable in my class-outside of a function. Then, I Placed An Initialization In A Function Called "Form1"