We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.14.1
<template> <div> <a href="https://vitejs.dev" target="_blank"> <img src="/vite.svg" class="logo" alt="Vite logo" /> </a> <a href="https://vuejs.org/" target="_blank" > <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" /> </a> </div> </template>
Beforehand, the command npx prettier . --write works perfectly fine. If I execute this command, it'll format the code just how I'd expect it.
npx prettier . --write
The problem is the PHPStorm Reformat Code function. It basically does nothing. Here is a video demonstrating my problem:
Reformat Code
This is the end result, how it should look like:
<div> <a href="https://vitejs.dev" target="_blank" > <img src="/vite.svg" class="logo" alt="Vite logo" /> </a> <a href="https://vuejs.org/" target="_blank" > <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" /> </a> </div>
This is my .prettierrc config:
.prettierrc
{ "singleAttributePerLine": true, "singleQuote": true, "semi": false, "plugins": ["@shufo/prettier-plugin-blade"], "overrides": [ { "files": ["*.blade.php"], "options": { "parser": "blade", "tabWidth": 2 } } ] }
No response
The text was updated successfully, but these errors were encountered:
I just want to add, that it does work on Visual Studio Code. No problems at all.
Maybe I'm missing something in PHPStorm, but that's what I could find for now
Sorry, something went wrong.
Same issue. Can't make it work.
@AsKode @sven-ahrens The docs will help you ;)
https://github.com/shufo/prettier-plugin-blade?tab=readme-ov-file#jetbrains-webstorm-phpstorm-pycharm
shufo
sven-ahrens
No branches or pull requests
Version
1.14.1
Template before formatting
Template after formatting
Expected Behaviour
Beforehand, the command
npx prettier . --write
works perfectly fine. If I execute this command, it'll format the code just how I'd expect it.The problem is the PHPStorm
Reformat Code
function. It basically does nothing. Here is a video demonstrating my problem:Bildschirmaufnahme.2024-06-26.um.16.10.13.mov
This is the end result, how it should look like:
This is my
.prettierrc
config:My specs:
Relevant log output
No response
The text was updated successfully, but these errors were encountered: