This VS Code extension implements 'Go To Definition' and 'Find All References' for Lightning Web Components (LWC) within HTML templates. With this extension, you can click on a referenced component in your HTML and use the 'Go To Definition' option to navigate directly to the HTML file of the selected component or use 'Find All References' to locate all instances where the component is referenced.
Features
Navigate to Component Definitions: Quickly jump to the HTML file of any referenced LWC component in your project.
Find All References: Locate all instances where a component is referenced in your project.
Error-Free Navigation: Avoid accidentally navigating to test mocks or similarly named components.
Improved Productivity: Eliminate the need to manually search for component files by name, saving time and reducing errors.
Modern Coding Experience: Provides features that are standard in modern development environments, now tailored for LWC projects.
'Go To Definition' Example
Given the following HTML, you can right-click on <c-contact-tile> and select 'Go To Definition' to navigate directly to the c-contact-tile component's HTML file.