Return to previous line of code in Visual Studio .NET 2008/2010
Here's a quick tip that probably won't change your development life, but will also probably come in handy when you're looking through a hierarchical chain of function calls in your code. I used to program in Visual Basic 6. I don't have a lot of fond memories of it, but there's one function that came in handy. That was the "Return to Previous Line" right-click function (I can't remember if that's exactly what it was called, but that was the idea). If I was debugging a function or sub-function that happened to call upon several other functions or subs from different modules and classes, the "Return to Previous Line" ability made it easier to find my way back to the original calling stack. Well...
There's no obvious way to accomplish this in .NET Visual Studio. There is, however, a keyboard shortcut that accomplishes this. CTRL+- (that's CTRL plus the minus or hyphen sign). This actually works even better than the old functionality because you can go back several steps (think of it like the undo functionality, except that you're jumping to previously selected lines of code).
Tags: .net, code, ctrl, goto, keyboard shortcut, line, previous, quick tip, return to previous line, vb, vb6, visual studio
Comments
Got something to say?
