function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Source Code Search



We would like to be able to search our apex class and trigger source code.   The purpose would be to locate code routines that might be useful in current work and to speed the resolution of bugs and other issues.  Please let me know if this is possible.  I wrote code to iterate through our apex class objects and found the source code line property on the object to contain obfuscated or truncated data.  Please let me know if there is any way to accomplish this.


Thanks, Dave


Best Answer chosen by Admin (Salesforce Developers) 

Not sure if this is the type of hack you're looking for, but if you're looking for a text search mechanism, what we do is simply run a text search in TextPad against the metadata files that are saved to the local file system by Eclipse. It helps to find specific syntax / patterns, but obviously if you're looking for something like a cataloging mechanism with metadata / descriptive search you would need to set that up in a source code repository or other wiki-esque system.