SystemVerilog and Verilog Formatter for VSCodeBeautify SystemVerilog and Verilog code in VSCode through google/VeribleNEW: Now working in Windows, Ubuntu, CentOS and more! WARNING! This extension will only work out of the box for the supported pre-built OSs detailed below. For other OSs you might need to build Verible yourself and have it in your PATH. InstallationTo install SystemVerilog and Verilog Formatter, search it in the Extensions tab inside VSCode, or install it from the Marketplace. Alternatively, you can also clone this repository and build the sources yourself, then install it from VSIX. OS SupportAs of now, Verible binaries are released for a limited number of OSs and versions. If your OS or distro is not listed below, you can give it a try with the one that is most similar to yours, some users have been able to use it in different distros as well. Otherwise, you can build Verible for your OS and use that selecting build "none".
The following builds are provided from an archived version because they are not included in the latest official builds. These are provided to make this formatter compatible with as many systems as possible, but note that support might be limited.
Select which binary you want to use by setting
The beginning of the string is used to select the version, so You can use this extension with any OS not listed above but in that case you need to provide your own build of Verible and make it accessible in your PATH. Then select
CommandsNative formatting:This extension integrates with VSCode formatting, so you can use the built-in Format documentYou can use the Format selectionYou can select a portion of the file and use the ConfigurationThe behavior of the formatter can be customized with additional command-line arguments. You can find a complete list of the supported arguments here. Add the arguments that you desire to customize in Example of custom values:
LicenseThis extension is released under MIT license. The Verible binaries are fetched from github.com/google/verible/releases, Verible being licensed under Apache-2.0 license. |