When I Use any CSS selector and use prettier in vscode to format...... It automatically puts each selector (separated by comma) into next line which is not then not detected by CSS...
What I wrote :
td,th,table {
border: 5px solid greenyellow;
}
After formatting (through prettier) :
td,
th,
table {
border: 5px solid greenyellow;
}
My Prettier settings in vscode:
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 100,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false,
"vueIndentScriptAndStyle": false,
"filepath": "c:\\Users\\coder\\Desktop\\a.css",
"parser": "css"
}
Please Help !!