Add editor action to manually invoke buffer format
This commit is contained in:
parent
955ebc5499
commit
f3395cf4fd
9 changed files with 124 additions and 33 deletions
|
@ -42,21 +42,20 @@
|
|||
// 3. Position the dock full screen over the entire workspace"
|
||||
// "default_dock_anchor": "expanded"
|
||||
"default_dock_anchor": "right",
|
||||
// How to auto-format modified buffers when saving them. This
|
||||
// setting can take three values:
|
||||
// Whether or not to perform a buffer format before saving
|
||||
"format_on_save": true,
|
||||
// How to perform a buffer format. This setting can take two values:
|
||||
//
|
||||
// 1. Don't format code
|
||||
// "format_on_save": "off"
|
||||
// 2. Format code using the current language server:
|
||||
// 1. Format code using the current language server:
|
||||
// "format_on_save": "language_server"
|
||||
// 3. Format code using an external command:
|
||||
// 2. Format code using an external command:
|
||||
// "format_on_save": {
|
||||
// "external": {
|
||||
// "command": "prettier",
|
||||
// "arguments": ["--stdin-filepath", "{buffer_path}"]
|
||||
// }
|
||||
// }
|
||||
"format_on_save": "language_server",
|
||||
"formatter": "language_server",
|
||||
// How to soft-wrap long lines of text. This setting can take
|
||||
// three values:
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue