Skip to content

Commit 7c85980

Browse files
authored
Add VS Code integration section to the formatter documentation (#1785)
1 parent 7ce08af commit 7c85980

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

runtime/fundamentals/linting_and_formatting.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,20 @@ jobs:
106106
This ensures that any code changes adhere to the project's formatting standards
107107
before being merged.
108108
109+
### Integration in VS Code
110+
111+
To enable Deno as your formatter in VS Code, you have to set it up as your default formatter in the settings, and then add a `.vscode/settings.json` file in the root of your project with the following configuration:
112+
113+
```json
114+
{
115+
"deno.enablePaths": [
116+
"./deno.json"
117+
]
118+
}
119+
```
120+
121+
If your `deno.json(c)` file is located in a subdirectory of your project, provide the correct relative path to it instead.
122+
109123
### Available options
110124

111125
#### `bracePosition`

0 commit comments

Comments
 (0)