trebleCode
trebleCode

Reputation: 2308

View Class Hierachy in VS Code

Does VS Code inherently come with any tool other than Ctrl+Shift+O to view the entire class hierarchy within a project? Think similar to a Visual Studio solution or Eclipse project.

I've looked around the VS Code extension marketplace and have not seen one. It would be very useful to see this kind of tree for a TypeScript based project instead of seeing just the imports from a particular .ts file

If anyone knows of one, please share!

Upvotes: 24

Views: 12670

Answers (2)

Ed_
Ed_

Reputation: 1107

If you click on an empty line in your file then when you press the small dots on the location hint above, it will show the first level members available, which more likely are going to be classes, constants and public methods like in my image: enter image description here

Upvotes: -2

trebleCode
trebleCode

Reputation: 2308

If you're in the Explorer, the built-in OUTLINE view does exactly this. I am apparently not paying attention.

Upvotes: -2

Related Questions