-
-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
In my project workspace settings file .vscode/settings.json
I have:
{
"editor.formatOnSave": true,
"[shellscript]": {
"editor.formatOnSave": false
}
}
However, when I save a shell script it's still auto formatted.
As a workaround, to stop auto formatting on shell scripts in my project I have to add all supported file types except for shellscript
to:
{
"shellformat.effectLanguages": [
"dockerfile",
"dotenv",
"hosts",
"jvmoptions",
"ignore",
"gitignore",
"properties",
"spring-boot-properties",
"azcli",
"bats"
]
}
It would be good if this extension also respected the standard VSCode editor.formatOnSave
setting.
iryston, VoodaGod, cardin, recfab, vitormv and 3 more
Metadata
Metadata
Assignees
Projects
Status
todo
Milestone
Relationships
Development
Select code repository
Activity
[-]`"editor.formatOnSave": false` doesn't appear to be supported[/-][+]`"editor.formatOnSave": false` doesn't appear to be respected[/+]soredake commentedon Feb 23, 2023
Reported the same in vscode repo microsoft/vscode#173689
fix: respect `"editor.formatOnSave": false` foxundermoon#303
"editor.formatOnSave": false
#303 #344foxundermoon commentedon Jul 20, 2023
The early implementation is not elegant enough, it seems that it needs to be re-architected.
https://code.visualstudio.com/blogs/2016/11/15/formatters-best-practices#_the-formatting-api
[dotenv]
against my explicit consent microsoft/vscode#201587trinitronx commentedon Jun 25, 2024
This would be a very nice to have feature, as it would allow for configurations like other formatters & linters: