prettier-vscode icon indicating copy to clipboard operation
prettier-vscode copied to clipboard

singleAttributePerLine not working

Open TkinterinShanghai opened this issue 2 years ago • 3 comments

Summary

setting singleAttributePerLine to true does not have any effect.

Steps To Reproduce:

  1. Your .prettierrc looks like this:
{
    "singleQuote": true,
    "printWidth": 200,
    "semi": true,
    "useTabs": false,
    "trailingComma": "none",
    "arrowParens": "avoid",
    "tabWidth": 4,
    "singleAttributePerLine": true
}
  1. Create some HTML file with lots of attributes per node

Expected result

Each attribute gets put on a separate line

Actual result

Attributes get squished into a single line

Additional information

VS Code Version:

1.67.2

Prettier Extension Version:

9.5.0

Prettier Library Version:

2.6.2

OS and version:

Mac Monterey, 12.3.1

TkinterinShanghai avatar Jun 01 '22 11:06 TkinterinShanghai

Affects me too

karlitos avatar Jun 09 '22 22:06 karlitos

delete this "printWidth": 200 try again

jzsn2018 avatar Aug 01 '22 02:08 jzsn2018

Not working for me too, option is not reconized

image

isakigus avatar Aug 10 '22 10:08 isakigus

Not working for me too, option is not reconized

image

Seem this feature is not yet released. CHANGELOG

nathan1658 avatar Aug 10 '22 14:08 nathan1658

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Nov 19 '22 00:11 github-actions[bot]