How do I search to find which files have a particular word?

Asked

Viewed 86 times

1

Use case: I’m browsing a project, trying to understand the code. It’s several different code files. I’m analyzing one of these files and it calls an abc function().

How do I, via web, know which project files use (and where is the definition) of this abc function()?

(as well as is possible with find on linux)

  • Via web finds it difficult... but you can download the project and use an IDE to give a "find all"

  • what you can do is on the project screen you can press the letter "T" and then write what you are looking for, but it is only for the name of the files

  • thanks @hugocsl, but the idea eh need not download. As I am learning, I like to poke around the projects by the site of the same github and try to understand the code, but without the need to download

  • thanks @Bulfaitelo, but the idea eh search inside the archives, not their name

2 answers

1


You can use Github’s own search in the upper left corner by selecting to search in your repository.

But since the staff responded here, it might be best to clone locally and select. To find the definition, several editors use the Ctrl + click function shortcut.

  • thank you, that’s right!

0

Hello! I don’t know if it’s exactly what you need, but you can use the Ctrl + L to search for a keyword or part of it.

Select Ctrl + L and type função abc(), will show the exact location of the searched term.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.