laravel_简单介绍什么是laravel pint

In addition to built-in coding assistance, PhpStorm integrates with Laravel Pinta code quality tool built on top of PHP CS Fixer for detecting coding style issues in Laravel projects.

To use Laravel Pint from PhpStorm instead of the command line, you need to register it in PhpStorm and configure it as a PhpStorm code inspection.

Once installed and enabled in PhpStorm, the tool is available in any opened PHP file, and no additional steps are required to launch it.

The on-the-fly code check is activated upon every update in the file thus making it easy to get rid of discovered problems.

The issues reported by Laravel Pint on the fly are highlighted in the editor in the same way as the errors and warnings reported by PhpStorm’s internal code inspections.

When the tool is run in batch mode, the errors and warnings are displayed in the Problems tool window.

Each message has the Laravel Pint prefix to distinguish it from PhpStorm internal inspections.

You can use the predefined groups of Laravel Pint rules, or enable and disable specific rules in the pint.json file.

除了“内置的”编码辅助功能之外,PhpStorm还集成了“Laravel Pint”——这是一个基于“PHP CS Fixer”构建的“代码质量工具”,用于在“Laravel项目”中“检测代码风格问题”。

要在PhpStorm中使用“Laravel Pint”而不是通过命令行,您需要在PhpStorm中注册并将其配置为PhpStorm代码检查

一旦在PhpStorm中安装并启用了该工具,它将在“任何打开的PHP文件”中可用,并且无需额外步骤即可启动它。

“即时代码检查”在文件的“每次更新”时被激活,因此很容易“摆脱发现的问题”。

“Laravel Pint”实时报告的问题会以与“PhpStorm内部代码检查”报告的错误和警告相同的方式在编辑器中“高亮显示”。

当工具以“批处理模式”运行时,错误和警告将显示在“问题工具窗口”中。

每条消息都有“Laravel Pint”前缀,以区别于“PhpStorm内部检查”。

您可以使用“Laravel Pint规则的预定义组”,或在“pint.json”文件中启用和禁用“特定规则”。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值