# How to list all methods defined in a file, including extension methods

**URL:** <https://discourse.julialang.org/t/how-to-list-all-methods-defined-in-a-file-including-extension-methods/55855>\
**Category:** General Usage\
**Created:** [February 23, 2021, 2:36pm UTC](https://discourse.julialang.org/t/how-to-list-all-methods-defined-in-a-file-including-extension-methods/55855 "2021-02-23T14:36:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maajdl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maajdl/32/22838_2.png) [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Post date:** [February 23, 2021, 2:36pm UTC](https://discourse.julialang.org/t/how-to-list-all-methods-defined-in-a-file-including-extension-methods/55855/1 "2021-02-23T14:36:01Z")

</div>

Hello,

I already found here a trick for how to list functions defined in a given Julia file:

> [@How to extract the names of functions from a Julia file?](https://discourse.julialang.org/t/how-to-extract-the-names-of-functions-from-a-julia-file/23650/2):
>
> Maybe not the simplest, but this works Skip the following if that file already contains a module: module dummy include("yourFile.jl") end then syms = names( dummy, all = true ) filter( x-\>getproperty(dummy,x) isa Function, syms )

I can go further for methods using `methods(f, [types], [module])` .  
However, I can’t figure out how to also get the **extension methods**.  
I aks because I extended quite a few `Docs.getdoc` and I would appreciate to have an overview.

Any suggestion to list methods including extensions?

Thanks

Michel
