VS Code Extensions
vscode-treefmt-nix

vscode-treefmt-nix

by VanCoding

Format files using treefmt-nix

Downloads

43

Rating

— (0)

Version

1.0.3

Last updated

Sep 04, 2026

vscode-treefmt-nix logo

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

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.