1. 下载常用verilog扩展
2. 下载ctags安装包
对于使用的服务器系统,下载对应安装包,以下引用自官方说明universal-ctags
Windows
Daily builds are available at the ctags-win32 project.
Go to the releases page to download zip packages.
Unix-like
Nightly builds are available at the ctags-nightly-build project.
Go to the releases page to download tarball archives.
Mac
Recent builds are available via the universal-ctags
Homebrew formula.
Snap
Go to ctags-snap and
clone the ctags-snap
repo. Then, follow instructions to build the
snap package of Universal Ctags. Snapcraft will automatically fetch the source
code from GitHub.
3. 解压(此处以linux为例)
使用 tar -xf linuxctags.tar.xz 命令解压
4. 配置上文verilog扩展路径
此处路径填写解压的bin下的ctags路径(不用添加后缀)
注:/data/users/用户名/linuxctags/bin/ctags和~//linuxctags/bin/ctags都可以。
5. 关掉设置,重启vscode
然后就可以进行悬浮显示和定义跳转了(F12)