2

Hey is it possible in Visual Studio Code to just click on the name of a class/method and then the program will open the file with definition of this class/method? I have big project and I am looking for a good way to move between different files.

ramseyka
  • 23
  • 3

1 Answers1

2

Right Click on the class Name and then choose Go to Definition. For example if you want to go to the definition of a class named Person, place the cursor on that word and then right click and click on Go to Definition or just press F12

Son of Man
  • 1,213
  • 2
  • 7
  • 27
  • It doesn't work :( I open a file, and in this file I have a class which inherits from another class. I select name of this class and click "Go to definition" and I get "No definition found for ...". – ramseyka Nov 29 '21 at 07:51
  • Your intellisense engine may be broken check out this link on how to resolve that https://stackoverflow.com/questions/10237744/go-to-definition-go-to-declaration-not-working-reliably-in-vs2010 – Son of Man Nov 29 '21 at 07:55