Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>nomfmt: Nomad FormatterNew to Visual Studio Code? Get it now.
nomfmt: Nomad Formatter

nomfmt: Nomad Formatter

Karan Sharma

|
1,389 installs
| (0) | Free
Format Hashicorp Nomad job specs using `nomfmt`.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft