Hướng dẫn phpstorm hide warnings
Some inspections may report problems that you currently do not want to see. In this case, you can disable or suppress them. When you disable an inspection, you turn it off. It means that the code analysis engine stops searching project files for the problem that this inspection is designed to detect. Note that when you disable an inspection, you disable it in the current
inspection profile; it remains enabled in other profiles. In the Settings/Preferences dialog
(Ctrl+Alt+S), select . Locate the inspection you
want to disable, and clear the checkbox next to it. Apply the changes and close the dialog. You can quickly disable a triggered inspection directly in the editor. Place the caret at the highlighted line and press
Alt+Enter (or click
Click the arrow next to the inspection you want to disable, and select Disable inspection. Disabling inspections in the Problems tool window
Re-enable inspections
Suppress inspectionsWhen you suppress an inspection, the code analysis engine doesn't highlight the problem found by this inspection in the specific piece of code (class, method, property, or statement). You can suppress an inspection in entire JavaScript and TypeScript classes and files. In HTML and Vue.js, an inspection can be also suppressed in the whole file. Suppress an inspection in the editor
Suppress an inspection in the Inspection Results tool window
Enable suppressed inspectionsWhen you suppress an inspection, the IDE adds the
Change the highlighting level for a file
Last modified: 01 August 2022 |