Home Download Buy Blog Forum Support

How to find code/text in all project files?

How to find code/text in all project files?

Postby codynew on Sat Jun 08, 2013 6:08 pm

Hi

I've managed to find my way around the GoToAnything file - but is it possible to find a piece of text/code in all the project files?

Say for example that I have lots of css files and I am looking for img.logo in all the files?

Thanks
codynew
 
Posts: 13
Joined: Fri May 17, 2013 6:16 am

Re: How to find code/text in all project files?

Postby Lemon on Sat Jun 08, 2013 6:35 pm

If you have the project open, just use "ctrl + shift + f" (windows key bindings, I don't know the other OS key bindings) to bring up the "find in files" panel at the bottom of the screen.
Type your search string into the "Find" text input and make sure the "Where" input says "<project>" and press the "Find" button.
It should then search all files in your open project for your search string.
Lemon
 
Posts: 27
Joined: Wed Jul 11, 2012 12:49 pm

Re: How to find code/text in all project files?

Postby codynew on Sun Jun 09, 2013 5:12 am

Thanks @Lemon - that works great.

When the search results come back, I keep having to go back to the Find Results page to open each result individually.

Is it possible to 'open all search result files' in the tabs?
codynew
 
Posts: 13
Joined: Fri May 17, 2013 6:16 am

Re: How to find code/text in all project files?

Postby Lemon on Sun Jun 09, 2013 6:57 am

I don't know of any way to open all search results in new tabs automatically, but when you are shown your search results you can use "F4" to cycle to the next search result and "Shift + F4" to Cycle to the previous search result.

As it goes to each search result it will automatically open the relevant file in a new tab if required.
Lemon
 
Posts: 27
Joined: Wed Jul 11, 2012 12:49 pm

Re: How to find code/text in all project files?

Postby schlamar on Tue Jun 11, 2013 7:34 am

There is also "goto_symbol_in_project" ("ctrl+shift+r"). Not sure how this works for CSS but for code it is great.
schlamar
 
Posts: 106
Joined: Tue Feb 19, 2013 2:11 pm


Return to General Discussion

Who is online

Users browsing this forum: DoTheEvo and 22 guests