How to search all Apex Classes in IntelliJ Illuminated Cloud?

798    Asked by KanekoTakeda in Salesforce , Asked on Jul 29, 2021


I am trying to search a code base for any reference to a particular SObject using IntelliJ IDEA (Illuminated Cloud). I tried using Double Shift as indicated within the interface, but when I search for references it returns nothing (even though I know there are some). This search seems to just be on the file name.

I found this cheatsheet which also seems to indicate Double Shift might be a good option, but I don't see anything else promising.

How can I search within all files for a specific substring? Similar to the first set of commands I posted here: Is there a search feature in MavensMate? Is there a similar command on IntelliJ IDEA? How IntelliJ search all files?


Answered by Jefferey Burgher

 I use "Find in Path", in the context menu shown by right clicking on the root of the project in the project navigation pane. This does a string search in the whole project structure.

If you want to use non-string searching, either open the SObject from the Offline Symbol Table (not the SObject's meta file) and use "Find Usages", or find an existing usage of the SObject in source code and use "Find Usages". Find usages are more sophisticated (you can find this in "Edit -> Find") and use symbol searching rather than string searching.

Steps to search IntelliJ search all files

  1. Ctrl+N : finds a class by name.
  2. Ctrl+Shift+N : finds any file or directory by name (supports CamelCase and snake_case). note. ...
  3. Ctrl+Alt+Shift+N : finds a symbol. In IntelliJ IDEA, a symbol is any code element such as method, field, class, constant, and so on.
  4. Ctrl+Shift+A : finds an action by name.



Your Answer

Interviews

Parent Categories