# `mix source`
[🔗](https://github.com/elixir-lang/elixir/blob/v1.20.5/lib/mix/lib/mix/tasks/source.ex#L4)

Prints source file location for modules and functions.

## Examples

    $ mix source MODULE           - prints the source location for the given module
    $ mix source MODULE.FUN       - prints the source location for the given module+function
    $ mix source MODULE.FUN/ARITY - prints the source location for the given module+function+arity

## Command line options

  * `--open`, `-o` - opens the source file in your editor instead of printing the location.
    Requires the `ELIXIR_EDITOR` or `EDITOR` environment variable to be set.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
