in VS, how do I navigate backwards in code by file?
In VS, I'm constantly using control+minus and control+plus to go forwards and backwards in my code. However, many times I want to get back to the spot I was that is not in the same file.
For instance,
- write code in file A at position A1 and then jump down to position A2 and write more code.
- navigate to file B (usually control-click on an identifier), and write code at positions B1 and B2.
--> What I'd like is a modified control-minus that is knows I'开发者_高级运维m not interested in jumping to previous points in the same file, and jumps me back to A2.
Aside from just pressing the Ctrl-- several times, maybe another option for you is to use bookmarks:
Ctrl-K Ctr-K to create/delete a bookmark
Ctrl-B Ctrl-N to cycle to the next bookmark in the list
of course you don't want to be leaving bookmarks everywhere otherwise this becomes tedious to use...
精彩评论