You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/stacks/clarinet/clarity-formatter.mdx
+9
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,15 @@ The [Clarity VS Code extension](https://marketplace.visualstudio.com/items?itemN
34
34
-**Format Selection**: Formats only the highlighted code (Right-click -> Format Selection).
35
35
-**Format On Save**: Automatically formats the file when you save it. This can be enabled in VS Code settings (`editor.formatOnSave`) and is off by default.
36
36
37
+
You can find the settings by searching "clarity-lsp" from the settings menu (Ctrl+, / Cmd+,) or using the settings.json directly.
38
+
For example, you can configure format-on-save for all clarity files within the settings.json with this entry:
39
+
40
+
```terminal
41
+
"[clarity]": {
42
+
"editor.formatOnSave": true,
43
+
},
44
+
```
45
+
37
46
### With Clarinet CLI
38
47
39
48
The Clarinet CLI allows you to format contracts from the command line using `clarinet format` (or the alias `clarinet fmt`). You can format individual files or all contracts defined in your project's `Clarinet.toml` manifest.
0 commit comments