Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>vscode-treefmt-nixNew to Visual Studio Code? Get it now.
vscode-treefmt-nix

vscode-treefmt-nix

VanCoding

| (0) | Free
Format files using treefmt-nix
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-treefmt-nix logo

vscode-treefmt-nix

A VSCode extension to format all files using trefmt-nix.

How to use

The extension itself is zero-config. It expects a binary called "treefmt" in your PATH. This can be the official treefmt binary, or a wrapper that includes the treefmt config file, like the one you get from treefmt-nix.

This repository also uses treefmt-nix. You can look at it's code for an example.

Development

Prerequisites

  • Install Nix and Direnv

  • Create an .envrc file by copying the default:

    cp .envrc.example .envrc
    
  • Then initialize dev shell by running

    direnv allow
    

Making Changes

  • Edit code
  • Compile and install the extension
    npm run install-extension
    

Publishing new versions

  • Build the extension
    npm run package
    
  • Upload the version on https://marketplace.visualstudio.com/manage/publishers/vancoding

Attributions

This project was derived from the treefmt-vscode project by isbecker, and thus inherited it's GPL license.

The logo was generated with Google Gemini.

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