Cool Features I Like About Visual Studio 2005 "Whidbey"

xiaoxiao2021-03-06  102

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:

class </ title></p> <p><Shortcut> Class </ Shortcut></p> <p><Description> Expansion Snippet for Class </ Description></p> <p><Snippettypes></p> <p><Snippettype> Expansion </ snippettype></p> <p><Snippettype> surroundswith </ snippettype></p> <p></ Snippettypes></p> <p></ Header></p> <p><Snippet></p> <p><Declarations></p> <p><Literal default = "true"></p> <p><Id> name </ id></p> <p><Tooltip> Class Name </ Tooltip></p> <p><Default> myclass </ default></p> <p></ Literal></p> <p></ Declarations></p> <p><Code language = "csharp" format = "cdata"> <! [Cdata [Class $ NAME $</p> <p>{</p> <p>$ SELECTED $$ End $</p> <p>}]]></p> <p></ Code></p> <p></ Snippet></p> <p></ CODESNIPPET></p> <p>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"</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-124406.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="124406" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.038</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = 'IfWL38Jm4iYN_2BacbyEEMShzDm42lCvWUN_2BhyViIczFMsBwTnDCWV9be2M8LCJocYnunRvtUimrVuM1G_2BSlk70A_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>