在哪里可以编辑php_codesniffer错误的背景颜色?

Where can I edit the background color of php_codesniffer errors?

提问人:mstdmstd 提问时间:10/16/2022 最后编辑:Peter Mortensenmstdmstd 更新时间:10/31/2022 访问量:29

问:

使用 PhpStorm 2021,我使用 squizlabs/php_codesniffer 3.7 并想改回 phpcs 警告背景颜色。

phpcs 有 level =“warning”——我想这是所有警告的一些常见选项,但是我在哪里可以编辑背景颜色?

phpstorm phpcodesniffer

评论


答:

2赞 LazyOne 10/16/2022 #1

https://www.jetbrains.com/help/phpstorm/configuring-colors-and-fonts.html#customize-color-scheme

  • Settings/Preferences on macOS | Editor | Color Scheme | General
  • Errors and Warnings | Warning(或您要更改的任何错误级别)

enter image description here


您还可以查看PHP_Codesniffer检查设置 - 您应该能够更改在那里使用的实际样式等:Settings/Preferences | Editor | Inspections | PHP | Quality tools | PHP_CodeSniffer validation

enter image description here

附言所有屏幕截图均在最新的稳定版 PhpStorm 2022.2.3 中制作