PhpStorm: Auto-Run Laravel Pint on File Save

preview_player
Показать описание
I want to show you cool automation for fixing code style as soon as you make the changes to the file.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

was waiting for this one since you posted the scheduled videos screenshot. great information. kudos for the best work

samparker
Автор

PhpStorm released Pint support in latest EAP so you might take a look and make vid with update

DrkVnm
Автор

I use Husky with pre/post-commit hooks that runs pint and auto commits them.

jasonpeters
Автор

More videos about Pint please. In our team we struggle to choose between Laravel and Psr12 preset.

lukasneuschl
Автор

Mac + Sail + Pint:

Program:
Arguments: bin pint $FileRelativePath$
Output paths to refresh: $FileRelativePath$
Working directory: $ProjectFileDir$

luki
Автор

It should be run before commit, but PHP Storm allows run external comman like pint only after commit.

antondavydov
Автор

This is brilliant, have you got a File Cache Conflict issue? I keep getting it every time I save a file and edit it again.

lifekent
Автор

Nice Video, but you forgot to mentioned the working directory, need to be filled with $ProjectFileDir$

adegboyejoshua
Автор

I have to return back to this video after people post in their advice. This is gold!

orphikk
Автор

My beer loving brain reads it as "Paynt" like the English pint...

Shame 11am is a bit early. Now I'm thirsty

MrFluteboy
Автор

Cool! I have a VSCode extension that does that for me

davidchibuezendubuisi
Автор

very helpful
but what should i do when i want to do it in a sail project ?
pint
does not work

saeed
Автор

I am running my project on WSL2 and docker, when setting up Pint like you, I get this error: /usr/bin/env: ‘php’: No such file or directory
Surely, I don't have PHP setup locally nor I want to. Solutions?

kickass
Автор

Thanks But I got this error In ConfigurationResolver.php line 390:

The path is not readable.

moatazmohammady
Автор

what about using vscode instead of phpstorm?
Is phpstorm better?

maryamkhodaparast
Автор

phpstorm и так может удалять неиспользованные классы и большее может делать при сохранении файла без pint

Eugen
Автор

working directory is missing. is need to be $ProjectFileDir$ like in the original tweet.

llrfuqs
Автор

Great automation and great video.

But I am having a problem: macro $FileRelativePath$ gives the path with back slash and it seems my WSL Windows does not like it cause it throws an error saying that such folder does not exist. Is there any way to make PHPStorm macro to fill the path with forward slashes?

Thx a lot!!!

carloscrespomoreno
Автор

hello sir Is there any way to extract text from images and pdf (OCR) ?

medomohaned
Автор

You forgot the Working directory: $ProjectFileDir$ setting.

ganjargalb