microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.14k stars 28.53k forks source link

Chained File Extensions specific settings (index.html.erb vs nginx/conf.erb) #222032

Open Frexuz opened 1 month ago

Frexuz commented 1 month ago

Original settings:

  "[erb]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "aliariff.vscode-erb-beautify"
  },

this formatter is made for HTML templates specifically, but it also triggers when saving any other non-HTML.erb file

it would be awesome to support chained file extensions like so

  "[html.erb]": {
    "editor.formatOnSave": true, // save does not trigger a format
    "editor.defaultFormatter": "aliariff.vscode-erb-beautify"
  },

while it could be fixed by the formatter maintainer in this case; 1) he says he does not have time to do any updates 2) my file settings might not be only formatter specific settings

so i think it's way better to support this in vscode :P

thanks

gjsjohnmurray commented 1 month ago

Came out of https://github.com/microsoft/vscode/issues/35350#issuecomment-2234398287

VSCodeTriageBot commented 1 month ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!