4

I am working on an application which is not developed by me so while understanding the code,I generally go to the method definition by using F12, then there are chances that in this method another method may be there, then i go to this method definition by using F12 so now my question is that how can I back to the starting method

method 1-Here i pressed F12

method 2-After Pressing F12 i am here, method 3 was also called here then i pressed F12 again

method 3-At last I am here

So how can i go back to the method 1 or method 2.

language: C#

Thanks in advance

Philip Pittle
  • 11,821
  • 8
  • 59
  • 123
Pankaj Kumar
  • 655
  • 3
  • 10
  • 16

4 Answers4

4

Hard way: bookmark where you are, using Ctrl+B+T and back to your bookmark using Ctrl+B+N.

Easy way: Just press Ctrl+- to backward and press Ctrl+Shift+- to forward.

Mohammad Mirmostafa
  • 1,720
  • 2
  • 16
  • 32
3

Ctrl+- will navigate back to the previous code point.

Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396
2

You are looking for Ctrl and - keys

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
2

Ctrl+- is used to go back to the previous point.

you can visit this for all the keyboard shortcuts in VS.

Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325
SoftSan
  • 2,482
  • 3
  • 23
  • 54