Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>rejigNew to Visual Studio Code? Get it now.
rejig

rejig

Matt Stewart

|
553 installs
| (0) | Free
VS Code extension for rejig Haskell/DAML module header formatting tool
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

rejig-vscode-extension

VS Code extension for the rejig Haskell/DAML module header formatting tool.

A command is registered and made available within haskell and daml files.

  1. invoke the command pallete ctrl+shift+p
  2. >Rejig Document

demo

Requirements

rejig must be available on $PATH. See rejig for assistance.

Install

Available in the marketplace

https://marketplace.visualstudio.com/items?itemName=MattStewart.rejig-vscode-extension

Extension Settings

This extension contributes most of the rejig flags.

Here's an example settings.json keeping in mind that rejig.prefixGroups are application specific.

  "rejig.prefixGroups": [
    "DA"
  , "DA.Next"
  , "DA.Finance"
  , "Daml"
  , "MyApp.Test"
  , "MyApp.Main"
  ],
  "rejig.displayImportGroupTitles": true,
  "rejig.displayImportBorderTop": true,
  "rejig.displayImportBorderBottom": true,
  "rejig.writeErrorFile": true
  • rejig.prefixGroups: The most specific prefixes must be listed last
  • rejig.writeErrorFile: within the workspace root directory, errors are written to rejig-error.txt. It's recommended to add this file to .gitignore.

Known Issues

Please create a github issue

Release Notes

See CHANGELOG.md

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