• 2019-04-26
  • 浏览 (478)

vscode现在不能直接跳转到接口的实现类,要先Go to Definition,然后选择Go to implementation。

Go to Definition : F12
Go to implementation : cmd + F12

If you are placed on method call to an interface and select "Go to implementation" it will show you "No implementation found...", what you need to do is first select "Go to Definition"
which navigates to the method definition in the interface and here you can select "Go to implementation" which correctly navigates to the implementation.
I had hoped this was a one step process, usually I do not care about the definition, and it opens an extra file in my workspace.
But it is still nice to be able to do it at all :-)