Skip to content

Commit 3afbd37

Browse files
committed
add settings descriptions for vscode
1 parent ae67617 commit 3afbd37

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

content/docs/stacks/clarinet/clarity-formatter.mdx

+9
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ The [Clarity VS Code extension](https://marketplace.visualstudio.com/items?itemN
3434
- **Format Selection**: Formats only the highlighted code (Right-click -> Format Selection).
3535
- **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.
3636

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+
3746
### With Clarinet CLI
3847

3948
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

Comments
 (0)