ClassLensClassLens shows class's relationships with its interfaces and parent class in the form of CodeLens I switch from WebStorm to vscode and find myself missing a feature miserably: the ability to see which members in a class are overrides to a base class and which members are interface implementations with a glance, plus the ability to navigate to the parent member quickly. Failing to find anything in the Marketplace, I finally developed this extension ClassLens, just to do what WebStorm does in in the form of CodeLens in vscode. As the name implies, ClassLens marks the following members in an class in the form of Codelens, when vscode CodeLens is enabled:
ClassLens also allows you to quickly navigate to the parent member by clicking on the CodeLens. File will be opened side by side by default. You can change the behaviour by adding this configuration to
Limitations
Non Codelens AlternativeIf you prefer Codelens to be disabled for absolute tidiness, install Class IO instead. Class IO does the same thing but is not a codelens extension. It decorates members and provide definitions and a command to go to parent members. PerformanceClassLens is a TypeScript and JavaScript Codelens extension, it requires CodeLens to be enabled to be triggered. When it comes to CodeLens extension, performance is a key issue because they influence each other. ClassLens builds up a database alike cache as you develop your project. Therefore it will cost you hardly anything after it has seen all of your class structures. Caches will be saved to workspace state and each time you open vscode, ClassLens will recover the cache from workspace state. ClassLens does not go and index your codebase like WebStorm does. If you find Codelens show up really slow in your vscode, consider checking your extensions and try to disable any extensions that implement Codelens one by one, and see if Codelens' showing up speed is up. CacheTo clean workspace cache: CTRL/CMD + P: then search for "ClassLens: Clear Cache". Note: Reset cache when ClassLens is updated and it is not working on files opened before. SupportDoesn't work or have a suggestion? Really enjoying ClassLens? In a giving mood? Your support is greatly appreciated! Links |