Giter Club home page Giter Club logo

systemverilog-formatter-vscode's Introduction

SystemVerilog Formatter for VSCode

Beautify SystemVerilog code in VSCode through google/Verible

WARNING! This extension will only work out of the box for the supported pre-built Linux systems detailed below. For other OSs you might need to build Verible yourself and have it in your PATH.

OS Support

As of now, Verible binaries are only released for Linux. If your Linux distro is not listed below, you can give it a try with the one that is more 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".

  • CentOS-8.1.1911-Core-x86_64
  • Ubuntu-14.04-trusty-x86_64
  • Ubuntu-16.04-xenial-x86_64
  • Ubuntu-18.04-bionic-x86_64
  • Ubuntu-19.10-eoan-x86_64

Select which binary you want to use by setting systemverilogFormatter.veribleBuild in the Settings dropdown or in your settings.json as:

{
  "systemverilogFormatter.veribleBuild": "Ubuntu-19.10-eoan-x86_64"
}

The beginning of the string is used to select the version, so Ubuntu-19, Ubuntu-19.10, Ubuntu-19.10-eoan... are all valid values that will select Ubuntu-19.10-eoan-x86_64. Default: Ubuntu-19.10

You can use this extension with Windows, Mac... or any other OS but in that case you need to provide your own build of Verible and make it accessible in your PATH. Then select "none" in the veribleBuild dropdown in Settings, or add this to your settings.json:

{
  "systemverilogFormatter.veribleBuild": "none"
}

Commands

Native formatting:

This extension integrates with VSCode formatting, so you can use the built-in Format Document, format-on-save... and any linked functionality.

Format document

You can use the SystemVerilog Formatter - Format this file command from the command palette to apply formatting to the whole current document; or assign a Keyboard Shortcut to systemverilog-formatter-vscode.formatDocument

Format selection

You can select a portion of the file and use the SystemVerilog Formatter - Format selection command from the command palette to apply formatting to just that section of the document; or assign a Keyboard Shortcut to systemverilog-formatter-vscode.formatSelection

License

This 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.