# Go To Definition (F12) does not work for functions in an included file

**URL:** <https://discourse.julialang.org/t/go-to-definition-f12-does-not-work-for-functions-in-an-included-file/76293>\
**Category:** General Usage\
**Tags:** vscode\
**Created:** [February 12, 2022, 11:32am UTC](https://discourse.julialang.org/t/go-to-definition-f12-does-not-work-for-functions-in-an-included-file/76293 "2022-02-12T11:32:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soldalma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/soldalma/32/29388_2.png) [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Post date:** [February 12, 2022, 11:32am UTC](https://discourse.julialang.org/t/go-to-definition-f12-does-not-work-for-functions-in-an-included-file/76293/1 "2022-02-12T11:32:35Z")

</div>

When I highlight the name of a function `foo` that was defined in a file `myfile.jl` that was included in my code like this:

```julia
# Contents of myfile.jl
some code
include(myfile.jl)
some more code
x = foo(y)
still more code

```

where the function `foo` is defined in `myfile.jl`, and then hit `F12` I get a message

```julia
No definition found for 'foo'

```

Is there an easy way to fix this?

---

<div class="post-metadata">

**Author:** ![John\_Gibson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/john_gibson/32/5321_2.png) [@John\_Gibson](https://discourse.julialang.org/u/John_Gibson)\
**Post date:** [February 12, 2022, 1:33pm UTC](https://discourse.julialang.org/t/go-to-definition-f12-does-not-work-for-functions-in-an-included-file/76293/2 "2022-02-12T13:33:14Z")

</div>

This sounds like the behavior of an editor or IDE. What are you using? VSCode? Atom? Emacs?

---

<div class="post-metadata">

**Author:** ![Soldalma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/soldalma/32/29388_2.png) [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Post date:** [February 12, 2022, 1:34pm UTC](https://discourse.julialang.org/t/go-to-definition-f12-does-not-work-for-functions-in-an-included-file/76293/3 "2022-02-12T13:34:13Z")

</div>

VSCode. Sorry, I should have specified it.

---

<div class="post-metadata">

**Author:** ![kingoslo](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@kingoslo](https://discourse.julialang.org/u/kingoslo)\
**Post date:** [February 18, 2023, 11:09pm UTC](https://discourse.julialang.org/t/go-to-definition-f12-does-not-work-for-functions-in-an-included-file/76293/4 "2023-02-18T23:09:25Z")

</div>

What was the solution for this problem?

---

<div class="post-metadata">

**Author:** ![wangfh5](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wangfh5/32/204858_2.png) [@wangfh5](https://discourse.julialang.org/u/wangfh5)\
**Post date:** [September 14, 2024, 10:24am UTC](https://discourse.julialang.org/t/go-to-definition-f12-does-not-work-for-functions-in-an-included-file/76293/5 "2024-09-14T10:24:19Z")

</div>

Still searching for solutions.
