JetBrains / phpstorm-workshop

Code for the PhpStorm workshop
https://www.jetbrains.com/phpstorm
Apache License 2.0
294 stars 71 forks source link

03 Inspections: 08 Run Inspections: Where is the 'Inspection profile dropdown'? #76

Closed ASauer closed 3 years ago

ASauer commented 3 years ago

Create a custom Inspection profile in which only a few inspections are enabled. HINT: Use the [...] next to the Inspection profile dropdown to enable or disable inspections in the selected profile.

I've searched in Settings, looked at the Code menu, looked at the interface... Where is the 'Inspection profile dropdown'?

zeitgen commented 3 years ago

Well, here it is =) It's not in the settings, it's Code | Inspect Code... as the exercise suggests:

image
ASauer commented 3 years ago

Aha! Reading this: Run inspections on the Whole project. I clicked on OK in this dialog since I interpreted 'Run' as a command to Run something.

Maybe this text should say Select instead of 'Run'.

zeitgen commented 3 years ago

Well, it can be both: the [...] button simply takes you straight to the Inspections settings, which are otherwise accessible via Preferences | Editor | Inspections. So you can start with the default profile, then tweak it and run the inspections again, and so on.