Display Typescript class hierarchy in VS Code
Asked Answered
D

3

14

is there any way (native or extension) in VS Code to see class inheritance hierarchy of some class in Typescript?

Something like Type Hierarchy view for Java classes in Eclipse?

Type Hierarchy in Eclipse

Thanx

Diophantus answered 8/2, 2019 at 12:19 Comment(0)
P
6

I don't know about Visual Studio extension, but if UML diagram is also an option, you can try

TypeScript UML Playground

Sample result of Raytracer program enter image description here

Possibility answered 8/2, 2019 at 12:41 Comment(1)
Thanx, looks interesting. It will be useful as VS Code extension, but considering "Work in progress" comment and having last change 2 years ago, this is probably dead path.Diophantus
J
0

TypeScript Explorer is an extension which is just in Preview version (v0.4.2) just now, but, does seems to do a good job of displaying the full type hierarchy when you select a particular type in the Editor window.

You can install it through the Extensions marketplace in VSCode by searching for: "TypeScript Explorer"

Demo animation from the extension summary: screenshot gif from the extension info page

Jackpot answered 17/4, 2024 at 19:29 Comment(1)
That are good news, very usable, thank you for the tip! Just missing the "top to bottom" hierarchy treeDiophantus
J
0

This question has been answered in How to generate TypeScript UML class diagrams?.

There is a VSCode extension you can use:

Jumper answered 3/8, 2024 at 15:11 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.