Skip to content

Commit

Permalink
README.md: Add vscode formatting instructions
Browse files Browse the repository at this point in the history
Signed-off-by: Manish Vachharajani <manish@githedgehog.com>
  • Loading branch information
mvachhar committed Feb 13, 2025
1 parent 00990a1 commit b5d63d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ To do this, add the following to your `.vscode/settings.json` file:
> `${workspaceRoot}` and `${workspaceFolder}` won't work since rust-analyzer has a custom function that implements env var substitution in `extraEnv`.
> `${env:xxx}` susbstitutions only work if the variable is set in `extraEnv` itself.

Finally, you want to format code using rust analyzer, and to format on save to make sure your code is always formatted.
To do this, add the following to your `.vscode/settings.json` file:
```json
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
},
```
## License

The Dataplane of the Hedgehog Open Fabric Network is licensed under the
Expand Down

0 comments on commit b5d63d9

Please sign in to comment.