From 51529189194d955785b70335061c4d121c851a98 Mon Sep 17 00:00:00 2001 From: Gregorio Juliana Date: Wed, 13 Dec 2023 11:53:48 +0100 Subject: [PATCH] chore: Added format configuration defaults for noir (#55) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gregorio Juliana QuirĂ³s Co-authored-by: Tom French Co-authored-by: Savio <72797635+Savio-Sou@users.noreply.github.com> --- README.md | 1 + package.json | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 1225fd0..b25b0d6 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ This extension helps developers write, understand, and improve Noir code by prov - Compile errors and warnings on file save - Run tests via codelens above each test - Useful snippets for common code patterns +- Auto-format on save ## Requirements diff --git a/package.json b/package.json index 5a51e6c..2babf1a 100644 --- a/package.json +++ b/package.json @@ -118,6 +118,12 @@ "description": "Traces the communication between VS Code and the language server." } } + }, + "configurationDefaults": { + "[noir]": { + "editor.defaultFormatter": "noir-lang.vscode-noir", + "editor.formatOnSave": true + } } }, "scripts": {