Home >Development Tools >phpstorm >How to configure psr specification reminder in phpstorm

How to configure psr specification reminder in phpstorm

藏色散人
藏色散人forward
2020-12-31 15:03:233168browse

The following tutorial column of phpstorm will introduce to you how to configure psr specification reminder in phpstorm. I hope it will be helpful to friends in need!

How to configure psr specification reminder in phpstorm

1. Install Code Sniffer:

sudo apt-get install php-pearsudo pear install PHP_CodeSniffer

2.phpstorm select sniffer configuration:

File-->setting --->Language & Frameworkd-->php----->Quality Tools:

Choose the code sniffer path you installed through apt:/usr /bin/ directory, select phpcs

to configure the psr rules you need:

File->setting->Editor->inspections:

The above is the detailed content of How to configure psr specification reminder in phpstorm. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete