r/Copilot • • 5d ago

Coding with copilot

When I'm coding and working on a program together with copilot, it refuses to give me the whole program when I ask for an update to the program, instead it always insists on the snippets that have changed, which takes more time to program. When I ask why I can't have the full program it gives an excuse of not being able to remember the whole program and it doesn't want to make mistakes.

When I code with Claude, for example, it's always happy to give me the full program and is very accurate.

Is there a way to get copilot to just give me the full program when I ask for it? Its the only LLM permitted by my work so I'm stuck with it unfortunately

3 Upvotes

19 comments sorted by

3

u/jamesmarm2 5d ago

Do you have it set on Think Deeper? Use this prompt: Here is the complete current version of the program. Apply the requested changes and return the entire updated file from beginning to end. Do not provide a diff or excerpts.

1

u/Bean7894 5d ago

Thanks will give that a go

2

u/sunnyozzie 5d ago edited 5d ago

I have played a bit with Copilot coding, I always add the latest version of the code to the prompt and ask it to have the whole package available to download once finished. Never had an issue.

1

u/Bean7894 5d ago

Thanks that's helpful to know

1

u/Repulsive_Wish2369 4d ago

Because, unlike Claude, it’s not a tool for serious coders. You’re trying to drive off-road with a smart. Eventually, something is going to break.

1

u/Bean7894 4d ago

I know, my job involves a lot of complex programming and I'm not allowed to utilise any other AI

1

u/teckel 4d ago

You're doing something seriously wrong. You can have Copilot tool up an entire application.

1

u/Bean7894 4d ago

I know I'm not using it optimally, do you have any advice?

1

u/teckel 4d ago

Are you using Copilot in Visual Studio Code or the CLI?

1

u/Bean7894 4d ago

Neither, I'm just using the Microsoft copilot app/web. I code within sas studio so I'm not sure these are available to me, also on the basic version of copilot

1

u/teckel 4d ago

Use Copilot CLI, you don't need an app/web. You run it directly in your code base (or an empty folder if you're tooling up a new application).

1

u/Joe_still136 4d ago

You're referring to Github Copilot, I assume OP is talking about M365 Copilot - sadly there's a difference and also another license for both

1

u/teckel 4d ago

Correct, I'm suggesting what to use for software development, as whatever the OP is using isn't working.

1

u/nudiustertian-angst 3d ago

I suspect the GitHub chat is not approved for OP to use in a corporate environment. I have the same issue.

1

u/teckel 3d ago

I purchased Github Copilot with my own money for my corporate environment. "brew install --cask copilot-cli" and Bob's your uncle. My company uses Claude, I don't.

1

u/nudiustertian-angst 3d ago

Do you have a data restricted storage agreement with copilot or are files you upload being fed into the larger AI learning model? At my organization we are only allowed to use our restricted copilot for company data.

→ More replies

1

u/RawrIAmADinosaurAMA 4d ago

After it gives the sections to revise like that, I just say now give me the full code.

1

u/green_cheese_moon 3d ago

You're not using the right tool for the job. 365 copilot is fine for asking coding questions or working on snippets of a project but it just doens't have the access to do what you want. Instead, download VS Code use Gitub Copilot. It basically can access anything you give it and runs on whole projects. That's the tool you are looking for.