How can I locate a function in a module?

I am reading someone else’s julia code.

He has a huge module.

In his code, he called many functions. I would like to locate the functions in the module so as to read the original codes for these functions.

I do not want to look into each jl file. That is very tedious.

Is there any smart way to quickly locate the original codes? I am using vscode.

Hello and welcome to the community :wave:. Here are a few suggestions:

  • If you are browsing on github, you can search for function name_of_function to find the source. (Does not always work, but most of the time)
  • If you are browsing in vscode, you can press F12 (go to symbol) or search for a symbol using the command pallette by first typing #.
  • Lastly, you can use the @edit or @which macros from the REPL
5 Likes

That works!It works well in Github.