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.
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 Lens | Setting | Default |
|---|---|---|
| Open Block Diagram | | |
| Open Class Hierarchy | | |
| Open State Machines Diagram | | |
| Open UVM Diagram | | |
| Set as Design Hierarchy Top | | |
| Set as UVM Topology Root | | |
| Reveal File in Target | | |
| Export Compilation Order | | |
| Export Documentation | |
Code lenses can also be disabled entirely by toggling the
setting.
