search github for code exactly the same

Asked 2 years ago, Updated 2 years ago, 109 views

What should I do if I want to search the code exactly on github?

When I search def hello(): in a repository on github.com to see the definition of a function called hello, def and hello appear.Double quotation marks don't work.
What should I do?

github

2022-09-30 21:29

2 Answers

In my case, I often use the following methods.

Especially 2. is powerful (lol

)


2022-09-30 21:29

How about searching github?
The first is "int main" to match exactly, and the second is int main to search for both int and main.

"int main"

int main


2022-09-30 21:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.