Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Angular TreeNew to Visual Studio Code? Get it now.
Angular Tree

Angular Tree

Marh0819

|
2 installs
| (0) | Free
This extension scans your Angular project, analyzes component templates and imports, and renders an interactive hierarchy tree showing parent-child relationships. Click any node to jump to its source. Supports Angular standalone components, template selectors, and dynamic refresh on save.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Angular Tree

Angular Tree is a Visual Studio Code extension that scans your Angular project, analyzes components, templates, selectors, imports, and routing configuration, and generates an interactive component hierarchy tree.

This tool helps developers understand how Angular components relate to each other, improving navigation, architecture comprehension, code review, and refactoring.


Features

  • Scans Angular Standalone Components automatically.
  • Detects:
    • Component selectors in templates.
    • imports in standalone components.
    • loadComponent() inside route configuration.
  • Builds a full parent → child hierarchy tree.
  • Click any node to jump directly to its source file.
  • Auto-refreshes the hierarchy every time you save a file.
  • Displays the tree inside a custom WebView using D3.js.

Usage

  1. Open any Angular workspace.\
  2. Run the command:
<!-- -->
Angular Tree: Show Angular Hierarchy Tree
  1. A WebView panel will open showing the hierarchical structure of your component tree.
  2. Click any component in the tree to open its .ts source file.

Commands


Command Description


angular-tree.showHierarchy Opens the Angular hierarchy tree view.

angular-tree.helloWorld Sample command.


Requirements

No additional configuration is required.
Works automatically with Angular Standalone Components.

Supported patterns:

  • @Component({ selector })
  • imports: [...]
  • <component-selector></component-selector>
  • Route lazy loading:
{
  path: '',
  loadComponent: () => import('./path/to/component')
}

Extension Settings

This extension does not currently expose configuration settings.


Known Issues

  • Does not yet detect dynamic components created via ViewContainerRef.
  • Does not analyze directives or pipes hierarchy.
  • Only supports Angular Standalone; modules are ignored.

Release Notes

0.0.1

  • Initial release.\
  • Full standalone Angular hierarchy detection.\
  • Template selector scanning.\
  • Import scanning.\
  • Route resolver support.\
  • Interactive D3.js tree renderer.

License

MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft