Skip to content

Natspec autocomplete not working in Solidity files (Hardhat Solidity extension) #713

@yogiemoji

Description

@yogiemoji

When typing /** in a Solidity file, it only autocompletes to /** */.
However, the usual Natspec documentation autocomplete shown in the Hardhat Solidity extension features
doesn’t appear for me.

Steps to reproduce:

  1. Open a Solidity file.
  2. Type /** above a function or variable.
  3. Press Enter.

Expected behavior:
VS Code should autocomplete a Natspec comment template (e.g., @notice, @param, @return, etc.).

Actual behavior:
Only /** */ appears, without Natspec tags.

Environment:

  • VS Code version: 1.105.1 (user setup)
  • Hardhat Solidity extension version: 0.8.25
  • OS: Windows_NT x64 10.0.19045 (Windows 10)

Additional context:
Any help or troubleshooting suggestions would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions