You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggested Fixes
Check Prettier Settings: Make sure you're using the latest version of the Prettier extension in VS Code. Sometimes, issues are resolved in newer releases.
Update Configuration: Consider modifying your Prettier configuration. You might want to test by disabling bracketSameLine to see if it resolves the issue:
json
Copy code
{
"prettier.printWidth": 180,
"prettier.bracketSameLine": false, // Set this to false temporarily
"prettier.singleAttributePerLine": false,
"prettier.htmlWhitespaceSensitivity": "ignore"
}
File a Bug Report: Since this seems to be a bug with Prettier, consider filing a bug report on their GitHub repository. Include the details you provided, along with your environment information and the Prettier log output.
Manual Workaround: As a temporary workaround, if the formatting is crucial for you and you can't wait for a fix, you might need to manually adjust the closing tag after formatting.
Summary
</pre>
turned tobracket of closing tag at new line instead of with same closing tag </pre despite
prettier.bracketSameLine
<pre>test
->content changing
test
to\ntest
Github Repository to Reproduce Issue
Link to a Github repo that can be used to reproduce the issue.
Steps To Reproduce:
Expected result
Actual result
Additional information
VS Code Version:
Prettier Extension Version:
OS and version:
Version: 1.93.1 (user setup)
Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
Date: 2024-09-11T17:20:05.685Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.19045
Prettier Log Output
LOG
The text was updated successfully, but these errors were encountered: