HookyQR / VSCodeBeautify

Enable js-beautify (https://github.com/beautify-web/js-beautify) in VS Code
MIT License
606 stars 180 forks source link

"css": { "type": ["css","less","scss"], // Keep Comma Separated Selectors On The Same Line in CSS Files // This Option Is Only Working In .jsbeautifyrc File In Project Root Folder "selector_separator_newline": false }, #351

Open vscode-pmaher opened 4 years ago

vscode-pmaher commented 4 years ago

Windows 10 VS Code 1.44.0 Beautify 1.5.0

This setting does not appear to work in my main settings.json file in VS Code

"selector_separator_newline": false

I have this in settings.json

    "beautify.language": {
        "js": {
            "type": ["javascript","json","jsonc"],
            "filename": [".jshintrc",".jsbeautifyrc"]
        },
        "css": {
            "type": ["css","less","scss"],
            "selector_separator_newline": false
       },
        "html": {
            "type": ["htm", "html", "php"]
    }
},

However, if I put "selector_separator_newline": false in .jsbeautifyrc file in my project root folder it seems to work as expected. Obviously it;s preferable to have the global setting. Am I doing something wrong?

Expected results

  textarea, select, input[type="text"] {
   width: 250px;
   box-sizing: border-box;
  }

Actual results

  textarea, 
  select, 
  input[type="text"] {
   width: 250px;
   box-sizing: border-box;
  }