Match inspection name and description
I know I can turn off an inspection on any given line of code by using the @noinspection
annotation, e.g.
/** @noinspection PhpUnused */
That is very useful.
But I did not find a quick and easy way to retrieve the correct inspection name for a given inspection description.
In the example above, the IDE messages only said Unused element: …
and I got to the PhpUnused
name by trial and error and googling.
What's the best way to get the inspection name to use in annotation from its verbose description?
Please sign in to leave a comment.
Hi there,
Alt+Enter
on most keymaps or by clicking on the light bulb)Right
key)I say: use Help and search for "Intention actions" – the page has GIF animations showing that (the overall process in general). For example:
Here is the direct link: https://www.jetbrains.com/help/phpstorm/disabling-and-enabling-inspections.html#suppress-in-editor