mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Illustrate format_on_save
external command using prettier
This gives us a chance to highlight a real-world scenario that a lot of our users will want to use, as well as showcasing the special `{buffer_path}` argument.
This commit is contained in:
parent
d89465c451
commit
b5765bc8cd
1 changed files with 3 additions and 3 deletions
|
@ -42,10 +42,10 @@
|
|||
// 3. Format code using an external command:
|
||||
// "format_on_save": {
|
||||
// "external": {
|
||||
// "command": "sed",
|
||||
// "arguments": ["-e", "s/ *$//"]
|
||||
// "command": "prettier",
|
||||
// "arguments": ["--stdin-filepath", "{buffer_path}"]
|
||||
// }
|
||||
// },
|
||||
// }
|
||||
"format_on_save": "language_server",
|
||||
// How to soft-wrap long lines of text. This setting can take
|
||||
// three values:
|
||||
|
|
Loading…
Reference in a new issue