Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Typescript class hierarchy in VS Code

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

like image 266
Tom HANAX Avatar asked Feb 08 '19 12:02

Tom HANAX


People also ask

How do I organize a TypeScript class?

You can invoke command "TypeScript Class Organizer: Organize Current File" by using the shortcut Ctr + Shift + O. You can change the shortcut by assigning a different shortcut to command "tsco. organize".

Does Visual Studio support TypeScript?

TypeScript supportBy default, Visual Studio 2022 provides language support for JavaScript and TypeScript files to power IntelliSense without any specific project configuration. For compiling TypeScript, Visual Studio gives you the flexibility to choose which version of TypeScript to use on a per-project basis.


1 Answers

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

like image 100
Matěj Pokorný Avatar answered Oct 17 '22 01:10

Matěj Pokorný