Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Format Nushell With TopiaryCLINew to Visual Studio Code? Get it now.
Format Nushell With TopiaryCLI

Format Nushell With TopiaryCLI

constneo

|
98 installs
| (0) | Free
Use TopiaryCLI format .nu file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Format Nushell With TopiaryCLI

Topiary

https://github.com/blindFS/topiary-nushell

# Add topiary.exe to PATH
$env.TOPIARY_HOME = "e:/dev/topiary/bin"

# topiary.exe in $env.TOPIARY_HOME
path add $env.TOPIARY_HOME

Format nushell with Topiary

cd e:/config
mkdir topiary
git clone https://github.com/blindFS/topiary-nushell topiary

Options

Priority Level: vscode plugin config > environment

Add TOPIARY_CONFIG_FILE and TOPIARY_LANGUAGE_DIR to environment.

$env.TOPIARY_CONFIG_FILE  = "e:/config/topiary/languages.ncl"
$env.TOPIARY_LANGUAGE_DIR  ="e:/config/topiary/languages.ncl"

Or add config to .vscode/settings.json

// .vscode/settings.json
{
  "[nushell]": {
    "editor.defaultFormatter": "constneo.vscode-nushell-format"
  },
  "editor.formatOnSave": true,
  "vscode-nushell-format.TOPIARY_CONFIG_FILE": "e:/config/topiary/languages.ncl",
  "vscode-nushell-format.TOPIARY_LANGUAGE_DIR": "e:/config/topiary/languages"
}

Build

npm install

npm install -g @vscode/vsce

vsce package --no-dependencies

Thanks

  • Topiary
  • Format nushell with Topiary
  • Tree-sitter grammar for Nushell
  • Nushell
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft