0

I'm trying to figure out if there is a way to display a PHP classes structure within Visual Studio Code.

So if I have a class which consist of a constructor and 5 methods, I'm looking for a panel which lists that constructor and those 5 methods with the ability to jump to each one. I'm not looking for relationships to any particular symbol. I just want to know the structure of the class I'm working with.

The closest thing to this which I can find seems to only be for typescript, not PHP: https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_43.md#call-hierarchy-support-for-javascript-and-typescript

Note: I'm aware of the Go to "Definition|Type Definition|Implementations|References" in the context menu, but this is not what I'm looking for.

Note: I'm aware of the Go to "Definition|Type Definition|Implementations|References" in the context menu, but this is not what I'm looking for.

d.lanza38
  • 2,525
  • 7
  • 30
  • 52
  • This is what the Outline panel in Explorer does, you can just leave it open and it will refresh according to what file you're focused on. – Alex Howansky Jan 10 '23 at 15:49
  • Well now I feel silly. This is exactly what I was looking for, don't know how I missed it. If you post as an answer I'll accept. – d.lanza38 Jan 10 '23 at 16:40

1 Answers1

0

This is what the outline panel does. View -> Explorer to enable the Explorer panel, and then expand the Outline panel and just leave it open. It will automatically refresh based on what file you're editing and you can drag the top border to resize as desired. Outline panel

Alex Howansky
  • 50,515
  • 8
  • 78
  • 98