Entries Tagged 'Visual Studio 2005' ↓
December 29th, 2007 — Technology, Vista, Visual Studio 2005, internet explorer, switch
I really, really wanted to to keep using Windows Vista but I tell you, I’ve had nothing but problems it’s just getting worse with each incremental update from Microsoft. Crash after crash, slow to switch to different users, takes FOREVER to login into my Domain and what a memory hog. It seem like it’s slower now then ever and file explorer keeps crashing and locking up. I actually had a blue screen of death the other day! To be honest I’ve not had one of these since Windows ME and Windows 2000.
Windows Vista on my notebook in the last month or so has stopped Visual Studio 2005 from debugging code! I’ve made no changes to VS2005, but the debugger is broken. It’s made it completely useless and has resorted me to using a Virtual PC version of Windows XP to get any work done!! I’ll be moving back to XP when the latest Service Pack comes. The new XP Service Pack is said to make XP just as secure as Windows Vista. Don’t even get me started on how horrible Windows Explorer 7 is! I really hope that IE 8 will fix performance and CSS compliance issues.
April 5th, 2006 — .net, Technology, Visual Studio 2005
If you own a Microsoft Explorer mouse, or one that has the back/forward buttons you can navigate back and forth through your code.
For example if you need to see a defintion, right click and select “Go To Definition” from the popup menu.

You are taken to the definition.

Now how many times do you need to go back to where you we’re working?
Simply click the back button on your mouse! Viola! You are now back to where you were before!

If you need to go forward again and look at the defintion, click the the forward button on yor mouse

OK so that’s all great if you like using the mouse. So how would you do it with the keyboard?
Tip #5b: Using the Keyboard to navigate to a definition and back.
Have the cursor over the item you want to get the defintion for and click the F12 key. Sweet! But now how to we get back? Press Ctrl + - (minus key). If you want to back to the definition again press Ctrl + - (minus key) again! There you have it!
NOTE: These key strokes assume you have selected the Visual Studio.net keyboard layout. I have not tested this with any of the other layouts.
February 12th, 2006 — .net, Microsoft, Software Development, Visual Studio 2005
There are times when you need to select text in column mode instead of the tradtional row selection. Think of it like selecting a range of columns and rows in Excel.
For example, lets say I want to highlight all the strings from this section of constants because you want to put into a store procedure as input parameters.

Move the cursor to the beginning column you want to start highlighting from. Hold down the ALT key and then press and hold down the left mouse button. Then Highlight the code you want with the mouse or arrow keys. Once you have the code you need, simply copy ( + C), cut ( + X), paste ( + V) or delete.

Now the clipboard has stored only the text that is highlighted above. The only thing now is remove the quotes and the semi-colons in when posting it in your stored procedure!
ALT + Left Mouse button = Column Text Selection
This feature also works in Visual Studio 2003. (It may work in 2001 but I have not used it in several years to remember)
technorati tags: visualstudio2005, visualstudio
December 6th, 2005 — .net, Microsoft, Software Development, Technology, Visual Studio 2005
Another nice feature that will save on time and re-indenting your code is the Surrounds with snippets. It works the same way as Code Snippets but the difference is that you highlight a section of code that you want to surround your code with.
This example I am going to surround a section of my code with a try catch. The keyboard short cut is Ctrl + K and the S.

A popup combo box will appear asking you what type. You can selec the you want to surround with. Since I am going to use a try catch, I can hit the “T” key and then hit enter.

My code is now surrounded by a try/catch with the Exception object available for me to assign a variable to.

December 6th, 2005 — .net, Microsoft, Software Development, Technology, Visual Studio 2005
Now that you’ve seen the power of using Code Snippets, the only thing cooler is creating your very own code snippets!
The best tool that I’ve seen to help you create your own is one from Microsoft. It’s actually an open source project that if want to contribute to, you can.
You can download it from the MSDN website.
December 5th, 2005 — .net, Microsoft, Software Development, Technology, Visual Studio 2005
One of the new features of Visual Studio 2005 is the ability to use Code Snippets.
At times coding can be very repeative and the 9 out of 10 times its the same thing that I am typing. By using the snippets feature I can reduce this.
So How do you insert a Code Snippet?
The fastest way is from the keyboard Press the Ctrl key + K and then X.

A popup window will appear for you do select the available snippets. There are several to choose from and you can even create your own! For this tip I am going to do a Property snippet. Press ‘P’ on your keyboard or scroll through the list and select it.

Your code will now have the snippet template of the property item in place. Very cool! However the best is yet to come! Notice that the private data member type is highlighted.

Go ahead and change it to the type you need. I am going to change mine to a string.

To change the name of the private data member simply hit the tab key. Now the highlighted box is around the private data member name. Type in the name you would normally give your private data members.

One really nice feature is the set and get values have been modified automatically to the same name as the private data member.
Finally tab one more time and enter your property Name.

Once you like what you see hit the enter key. However if you want to change any of the values you made you can simply hit the tab key again and it cycle through them all. (You can’t do this after hit the enter key though)
To me this is one of my favorite features and I find myself constantly doing these key strokes when I am in Visual Studio 2003. One more reason to port everything over to .net 2.0!
December 1st, 2005 — .net, Microsoft, Software Development, Visual Studio 2005

For the last couple of weeks I have been deep in development on a new project using Visual Studio 2005. All I can say is “Thank you Microsoft!” The debugging tools alone are worth the upgrade. I can’t tell you how much more productive I have been using the new Visual Studio. Microsoft, I take back everything I have said bad about you (for aleast a couple of days, or until something drives me nuts about Windows XP). This is one awesome IDE.
There is a great site I found by a developer at Microsoft. He is presenting his top debugging tips. I greatly suggest if you are using Visual Studio 2005 that you read his tips. They have been extemely useful and I want to pass this on to all (3) of my readers!