Skip to content

Hover Tips

About 341 wordsAbout 1 min

2025-01-08

Feature Description

The hover feature refers to the functionality where the IDE displays the context information of a variable next to the cursor when the cursor moves over the variable. Users can quickly understand the basic information of a variable through the hover feature. In the context of HDL development, a variable can be a signal, an instantiated module, a macro definition, or other symbols. DIDE provides a set of hover features to display the context of these variables.

HF.1 HF.1 Rendering Comments

Hover tips also collect and render comments surrounding variables in the view. DIDE currently supports rendering line comments or block comments above the variable declaration and to the right of the same line. Here is an example:

`define value 10  
/*
 * Block comment section
 */
// Inline comment section
module name #(
        // Leading comment
        parameter DATA_WIDTH // Trailing comment
    ) (
        // Leading comment
        input idata // Trailing comment
    );  
    
    wire wave;
    
    // Leading comment
    // Leading comment
    // Leading comment
    wire out, in
         sig; // Trailing comment
    
endmodule