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
MiddhaMiddha 

Developer Console - Search text in Class

Hi,

 

Is there any way that i can search for any text in a class/page while working in Developer Console. I have a long class with thousand lines of code and need to find some specific text in that class. Browsers 'Ctr + F' does not works. It only shows me the search results from the few lines of code that is visible on the page.

 

Does DC provides any search text box which i am missing which i can use to search the text from my code?

Tejpal KumawatTejpal Kumawat

Hi, 

 

There are near X (cross for close ) , "Open in new window" component like this Sign (▲)  click this & Simply Clicking (Ctrl +F) you can search anything...

 

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

Thanks & Regards

 

Tej Pal Kumawat

(Certified Developer) | http://salesforce-evershine-knowledge.blogspot.in/

 

MiddhaMiddha

Not working for me, tried in chrome and firefox :(

 

Collapsed the top section and the bottom section just to show the code but Ctr F only searches what is shown on the screen.

Tejpal KumawatTejpal Kumawat

Hi Gulshan,

 

I have tried in all of these browser Chrome, IE, Safari & Firefox . There are working for all...

 

Your Url also be change when clicking "Open in new window" component(▲) 

From 

https://cs10.salesforce.com/_ui/common/apex/debug/ApexCSIPage

To

https://cs10.salesforce.com/_ui/common/apex/debug/ApexExecAnon

 

Test it

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

Thanks & Regards

 

Tej Pal Kumawat

(Certified Developer) | http://salesforce-evershine-knowledge.blogspot.in/

MiddhaMiddha

Ok, I can see that Open in a new Window when i Open the Execute Anonymous window but not for a class.

 

I want to search in a class having 5000 lines of code. Are you talking about the same. If you can paste a screenshot that will be helpfull. Thank You.

Tejpal KumawatTejpal Kumawat

Hi Gulshan,

 

to check  snapShot go to my blog

 

Url : http://salesforce-evershine-knowledge.blogspot.in/

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

Thanks & Regards

 

Tej Pal Kumawat

(Certified Developer) | http://salesforce-evershine-knowledge.blogspot.in/

Thomas DvornikThomas Dvornik

Unfortuantly, a browser's ctrl+f is the only way to currently search. It is in the pipeline. You can vote it up here:

 

http://success.salesforce.com/ideaView?id=08730000000he4JAAQ

Meer ZamanMeer Zaman
Hi Middha,

We can search in File/Files, using options Find and Search in Files from developer console Edit menu.
Options are highlighted in screenshot below for details.

User-added image 

Thanks,
Zaman
 
Yogini K 7Yogini K 7
Try clicking on any line of your code and then search using ctr+F. It will highlight all the results from the code.
Gulshan Middha 1 6Gulshan Middha 1 6
Thanks guys, would have appreciated your help 5 years ago when I first posted this query and these options were not available :D

Salesforce changes a lot in 5 years time.
David Roberts 4David Roberts 4
...and now that LEX is here, the "search in files" doesn't search lightning components. Perhaps it will in another 5 years.
Darsh ApteDarsh Apte
I have tried in all of these browser Chrome, IE, Safari & Firefox . There are working for all...And also nice to see this forum. And i would like to share about GIPCL Recruitment (https://allgovernmentjobs.in/gipcl-recruitment).
Deepali KulshresthaDeepali Kulshrestha
Hi Middha,

Check below steps:

1. Simply click (Ctrl+F) then appear search box in the search box enter your text and press enter.

2. When you press enter your text is highlighted.

3. If you want to find another related text then you click (Up) and (Down) Arrow button accordingly which is available with the search box.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com
David Roberts 4David Roberts 4
To search lightning components, use the Chrome add-in, "Salesforce advanced Code searcher". It appears at the top of your setup page and works a treat.
Ruby SmithRuby Smith
We can search in File/Files, using options Find and Search in Files from developer console Edit menu. Here we are providing clash magic download (https://clashoflightapk.com/clash-of-magic/) here you can check the details of clash of magic.
Leanbridge TechnologiesLeanbridge Technologies
Using this extension you can search your code components your salesforce instance: 1) apex Classes 2) Apex Triggers 3) visualforce Pages 4) Visualforce Components 5) Lighting Component In addition to the above you can use this extension to jump to classes / pages / triggers from the advanced quick find section on the left hand side.
Max KushMax Kush
"Unfortuantly, a browser's ctrl+f is the only way to currently search. It is in the pipeline. You can vote it up here:
 
http://success.salesforce.com/ideaView?id=08730000000he4JAAQhttps://forexn.com/
"


thanks a lot mates, this issue really works for me well, i really appriciate it
Latest Govt Jobs IndiaLatest Govt Jobs India
Thanks for sharing this information.
Utpal Konwar 15Utpal Konwar 15
http://asia.google.com/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://asia.google.com/url?q=https://www.assamsakori.org/ (http://www.assamsakori.org)
http://clients1.google.com/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://clients1.google.com/url?q=https://www.assamsakori.org/ (http://www.assamsakori.org)
http://ditu.google.com/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://ditu.google.com/url?q=https://www.assamsakori.org/ (http://www.assamsakori.org)
http://images.google.ac/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.ac/url?q=https://www.assamsakori.org/ (http://www.assamsakori.org)
http://images.google.ad/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.ae/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.al/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.as/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.az/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.ba/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.bf/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.bf/url?q=https://www.assamsakori.org/ (http://www.assamsakori.org)
http://images.google.bg/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.bj/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.bt/url?q=https://www.assamsakori.org (http://www.assamsakori.org)
http://images.google.bt/url?q=https://www.assamsakori.org/ (http://www.assamsakori.org)
Great Article Thanks
Puneetpal SinghPuneetpal Singh
I'm new in here but I've also checked search in files is working to find a piece of code in the class. 
Regards,
Puneet
Rojgar Walkins (https://www.rojgarhub.com/walkins/)