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
Every time I paste in a file some code I copy from my IDE (aka formatted code, using regular Command+V) the plugins seems to add empty lines after import lines.
IDEs I am using - WebStrom, PhpStorm, both the latest versions.
Then I hit Save and Prettier re-formats the file removing the extra lines.
I know that is caused by the plugin because if I comment out plugins: ['@trivago/prettier-plugin-sort-imports'], - this behavior disappears.
Also this never happens if I "Paste as plain text"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Every time I paste in a file some code I copy from my IDE (aka formatted code, using regular Command+V) the plugins seems to add empty lines after import lines.
IDEs I am using - WebStrom, PhpStorm, both the latest versions.
Then I hit Save and Prettier re-formats the file removing the extra lines.
I know that is caused by the plugin because if I comment out
plugins: ['@trivago/prettier-plugin-sort-imports'],- this behavior disappears.Also this never happens if I "Paste as plain text"
Is there anything I can do to prevent this?
Here is my Prettier config:
Beta Was this translation helpful? Give feedback.
All reactions