59

I upgrade a language level in IntelliJ Idea in a quite big project and I would like to find all deprecated method usages left - I look for all the striketrough occurrences. I have found a similar question for PhpStorm where is suggested an approach:

  • CodeRun Inspection by Name... → Enter inspection name: deprecated

This is not available in the IntelliJ Idea IDE. I work with 2018.3.3 version. Is there a comfortable way to search for all the occurrences?

Nikolas Charalambidis
  • 40,893
  • 16
  • 117
  • 183

1 Answers1

107

The action you are looking for is in

  • Code -> Analyze Code -> Run Inspection by Name Ctrl+Alt+Shift+I)

The inspection "name" is still deprecated, however you will then need to chose a specific inspection in the drop down (e.g. "Deprecated API usage" for Java OR for PHP)

enter image description here

enter image description here

Honza Zidek
  • 9,204
  • 4
  • 72
  • 118
Nikolas
  • 2,066
  • 1
  • 19
  • 20