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:
Antonio Scandurra 2022-07-15 09:00:10 +02:00
parent d89465c451
commit b5765bc8cd

View file

@ -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: