Contact us Start a Trial

Code lenses

Code lenses provide you with shortcuts to contextual actions right inside the editor. They’re always shown as grey text on a line above your code. If you see annotations inline, these are instead called inlay hints.

As an example, instead of going to the design hierachy view to set a module as the design hierarchy’s top level, you can now simply click the Set as Design Hierarchy Top code lens.

Code Lens in VS Code

Most code lenses are enabled by default to more easily expose the most important and frequently used features. However, if you find they bother you, every code lens can be toggled on or off individually by changing one of the settings below. There’s always an alternative trigger to any code lens’ action, so disabling them is safe.

Code LensSettingDefault
Open Block Diagramsigasi.editor.codeLens.openBlockDiagram
Open Class Hierarchysigasi.editor.codeLens.openClassHierarchy
Open State Machines Diagramsigasi.editor.codeLens.openStateMachinesDiagram
Open UVM Diagramsigasi.editor.codeLens.openUvmDiagram
Set as Design Hierarchy Topsigasi.editor.codeLens.setAsDesignHierarchyTop
Set as UVM Topology Rootsigasi.editor.codeLens.setAsUvmTopologyRoot
Reveal File in Targetsigasi.editor.codeLens.revealInTarget
Export Compilation Ordersigasi.editor.codeLens.exportCompilationOrder
Export Documentationsigasi.editor.codeLens.exportDocumentation

Code lenses can also be disabled entirely by toggling the editor.codeLens setting.