Skip to content

Visual Studio Code extension for on-the-fly formatting of Nomad job specs in HCL using `nomad fmt`.

License

Notifications You must be signed in to change notification settings

mr-karan/vscode-nomfmt

Repository files navigation

nomfmt: Nomad Formatter for VS Code

Install from VS Code Marketplace

nomfmt is a Visual Studio Code extension that integrates nomad fmt to provide on-the-fly code formatting for Nomad job spec files written in HCL (HashiCorp Configuration Language).

Formatting in action

Requirements

  1. Prerequisites:

    • nomad CLI tool should be installed and available in your system's PATH.
    • HashiCorp.HCL extension for Visual Studio Code must be installed for syntax highlighting.
  2. VS Code Configuration:

    • Set up file associations for syntax highlighting:
{
    "files.associations": {
        "*.nomad.hcl": "hcl",
        "*.nomad": "hcl"
    },
    "editor.formatOnSave": true
}

Extension Settings

ID Description Default
nomfmt.enable Enable/disable nomfmt formatting. true

Supported File Types

nomfmt is specifically designed to format .nomad and .nomad.hcl files. Ensure your job spec files have one of these extensions for the formatter to apply.

About

Visual Studio Code extension for on-the-fly formatting of Nomad job specs in HCL using `nomad fmt`.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published