# Copilot mess

**URL:** <https://discourse.julialang.org/t/copilot-mess/113216>\
**Category:** Tooling\
**Tags:** vscode\
**Created:** [April 19, 2024, 2:40am UTC](https://discourse.julialang.org/t/copilot-mess/113216 "2024-04-19T02:40:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [April 19, 2024, 2:40am UTC](https://discourse.julialang.org/t/copilot-mess/113216/1 "2024-04-19T02:40:48Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/8/0/80f61810f41499aa5c9713280facc6c956785fe6.png)  
Copilot screws up the code when I ask for the docs of the function. It puts in that extraneous “function implementation goes here” when there already is a body of the function defined.

Any idea how to fix that?

---

<div class="post-metadata">

**Author:** ![liuyxpp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liuyxpp/32/9870_2.png) [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Post date:** [April 19, 2024, 5:01am UTC](https://discourse.julialang.org/t/copilot-mess/113216/2 "2024-04-19T05:01:04Z")

</div>

I’d say ignore when it doesn’t work but enjoy when it works.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [April 19, 2024, 2:40pm UTC](https://discourse.julialang.org/t/copilot-mess/113216/3 "2024-04-19T14:40:50Z")

</div>

Well, it doesn’t, hence my question. So I guess there is little control over what Copilot does?

---

<div class="post-metadata">

**Author:** ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Post date:** [April 19, 2024, 2:46pm UTC](https://discourse.julialang.org/t/copilot-mess/113216/4 "2024-04-19T14:46:42Z")

</div>

There is no control over Copilot. It sends the contents of your file to an LLM, generates a few possible solutions, and then puts the responses from the LLM in front of you as autofill.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [April 19, 2024, 2:50pm UTC](https://discourse.julialang.org/t/copilot-mess/113216/5 "2024-04-19T14:50:34Z")

</div>

Unfortunately, in my case it generates just one (the one with the garbage at the bottom). So no one has been able to use “docs” action successfully?

---

<div class="post-metadata">

**Author:** ![cpfiffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cpfiffer/32/208747_2.png) [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Post date:** [April 19, 2024, 3:15pm UTC](https://discourse.julialang.org/t/copilot-mess/113216/6 "2024-04-19T15:15:20Z")

</div>

I use it for docs all the time, but in general my flow is docs first (mostly written by me) and then the function itself (written together).

Part of working with copilot is just understanding that it fucks up, constantly, and that your role tilts more towards and editor and guide.

For what it’s worth, you do not have to accept the entire suggestion – you can step forward through words using (on my editor) Ctrl + Shift + Right arrow.

---

<div class="post-metadata">

**Author:** ![liuyxpp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liuyxpp/32/9870_2.png) [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Post date:** [April 20, 2024, 2:12am UTC](https://discourse.julialang.org/t/copilot-mess/113216/7 "2024-04-20T02:12:49Z")

</div>

Actually, there is a chat mode where you can do prompt engineering.

---

<div class="post-metadata">

**Author:** ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Post date:** [April 20, 2024, 6:12am UTC](https://discourse.julialang.org/t/copilot-mess/113216/8 "2024-04-20T06:12:41Z")

</div>

This is true, but doesn’t really solve the problem where OP wants to `docs` action to be improved!
