Showing posts with label VS6. Show all posts
Showing posts with label VS6. Show all posts

Tuesday, February 5, 2008

[.NET] Top 5 Visual Studio Hotkeys

Ok, to cut a long story short, these are the 5 Visual Studio Hotkeys I would bring with me on a desert island (if I had to go there with just my Viz, mylaptop, and an electrical generator):


(5) CTRL+SHIFT+B: Build - This is quite banal, you use it all the time so even if it ain't so sweet as hotkey it manages to enter my top 5. If you don't know this, man, you're out. Bread and butter (like the good old F7 in Visual Studio 6).


(4) F12: Go to definition - it's kind of nice sometimes to pull it in front of people: you just lose them. The move.


(3) CTRL+F6: Next IDE Window - Ain't is sweet? No more Window->Windows then selecting from that ugly list on that cheap dialog. Lightspeed!


(2) F5: Start with Debug - This is a well known 2-in-1 hotkey: you start the debugger and whenever you hit a breakpoint you just push it again to get going. Can't live without.


(1) F9: Toggle/Untoggle Breakpoint - This is my favourite: I just can't get enough of those red dots. Addictive.


(BONUS) CTRL+Tab: Tab Between Windows - Really useful. Not as immediate as CTRL+F6 but you can choose which window you wanna open, and in VS2008 this one lets you see a preview of what's in the documents. It performs as CTRL+F6 in VS2003 and VS6. Secret Weapon.


So, those were my favourite 5 Viz hotkeys; all of them work in all VS versions unless specified differently. Keep the good butchering up and share your hotstuff (keys included)!

Update [09/04/08] - Commenting/Uncommenting HOTKeys:

This are really helpful hotkeys I had to cut off from my top 5 even if I use them a lot:
COMMENTING -> select (with mouse or keys) the block of code you want to comment and then go with the following keys chord: CTRL+K to select - CTRL+C to comment what you just selected.
UNCOMMENTING -> select (with mouse or keys) the block of code you want to uncomment and then go with the following keys chord: CTRL+K to select - CTRL+U to uncomment what you just selected (must be commented to work).

Friday, January 25, 2008

[VS6] Cannot find [ file path ] (or one of its components) - when opening dsw Workspace

Problem: you get a "Cannot find [ file path ] (or one of its components).Check to ensure the path and filename are correct and that all required libraries are available." error when opening a Visual Studio 6 workspace file.

Solution: delete OPT and NCB files with the same name of your workspace (you find them in the same root folder of the workspace - back them up for safety if you feel so), they'll be re-generated as soon as you open the workspace.

This is one of those nasty ones you could spend a couple of hours on without having a clue. Those two kids just get corrupted sometimes/somehow (especially if you move the project, do some changes on some other machine/environment and then go back to yours). I tried to google it but no luck; just found the microsoft error page ( http://support.microsoft.com/kb/166389 ) which won't help you to solve it. I discovered the solution by empirical method (read RANDOM trials).

Talk Ya'll soon.