The Suricata IntelliSense Extension is Visual Studio Code extension that uses the Suricata Language Server to provide advanced syntax checking as well as auto-completion when editing Suricata signatures.
The Suricata IntelliSense Extension can be installed from the Visual Studio Code Marketplace or from the GitHb project
The Suricata Language Server needs to be installed separately. See Suricata Language Server page for specific instructions about its installation.
For the settings on Microsoft Windows, you will need to escape the backslash in the paths you need to enter. With a standard Suricata MSI installation
and a standard installation of the server with pip
the settings look like:
- Server Path:
C:\\Users\\User\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\suricata-language-server.exe
- Suricata Path:
C:\\Program Files\\Suricata\\suricata.exe
It provides auto-completion of Suricata keywords with access to the documentation:
The list of keywords is coming from Suricata so it will adapt automatically to the version you are using.
Advanced syntax check is done by Suricata on the signature files when they are saved. It also includes useful hints such as the fast pattern that is picked by Suricata: