---
# System prepended metadata

title: Using VS Code with IVerilog

---

# Using VS Code with IVerilog

By 徐以帆 2024.09

## Install Ctags

:::info
Any version of Ctags will do, the following tutorial takes universal-ctags as example.
:::

### Windows

1. Go to [Github for uCtags](https://github.com/universal-ctags/ctags#the-latest-build-and-package) and download the version you like
2. Or download `ctags-<version>-[x64|x86].zip` from [here](https://github.com/universal-ctags/ctags-win32/releases)
3. Extract the archive to `C:\` or any place you like

### Linux

1. `sudo apt install universal-ctags`


## Install Icarus Verilog (iverilog)

* Follow the guide in [iverilog Installation Guide](https://iverilog.fandom.com/wiki/Installation_Guide)
* Or download the installer from [iverilog for Windows](http://bleyer.org/icarus/)

## Setup Linter in VS Code

1. Install the [VSCode extension for Verilog](https://marketplace.visualstudio.com/items?itemName=mshr-h.VerilogHDL)
2. Configure the settings as below (**Note: Change the paths to those on your machine**)
   ![image](https://hackmd.io/_uploads/SyMMfhA30.png)

## Reference

1. [在VSCode設定Verilog開發環境](https://stoneapp.tech/cavern/post.php?pid=926)
2. [Universal Ctags](https://ctags.io/)
3. [VSCode extension for Verilog](https://github.com/mshr-h/vscode-verilog-hdl-support)

