48

One of the features I use frequently in PHPStorm is the Structure window, which shows me my file structure broken down into functions, classes, variables, etc . I'm checking out VS Code, and I don't see an option for that type of window anywhere. Is there a similar window, or other way I can view the structure of my file?

Thanks.

wonder95
  • 3,825
  • 8
  • 45
  • 74
  • Related issue on github: https://github.com/Microsoft/vscode/issues/5605 Extension: https://marketplace.visualstudio.com/items?itemName=patrys.vscode-code-outline – Mikhail Sep 16 '17 at 16:09
  • VSCode now ships with a default [Outline View](https://code.visualstudio.com/docs/getstarted/userinterface#_outline-view) that displays the symbol tree/file component structure of the currently active editor. – Sumax Apr 14 '23 at 11:27

2 Answers2

52

The latest version of VS Code now has "Outline view" shipped in

From their site:

The Outline view is out of preview and now enabled by default.

You can read more about this here:

https://code.visualstudio.com/updates/v1_25#_outline-view

Excellence Ilesanmi
  • 3,295
  • 1
  • 18
  • 17
6

I ended up going with Code Outline tree provider for Visual Studio Code as mentioned by @Mikhail above, and it works well.

wonder95
  • 3,825
  • 8
  • 45
  • 74