Hacker News new | past | comments | ask | show | jobs | submit login
How to use GitHub Copilot: Prompts, tips, and use cases (github.blog)
3 points by todsacerdoti on June 20, 2023 | hide | past | favorite | 9 comments



> Neighboring tabs is what we call the technique that allows GitHub Copilot to process all of the files open in a developer’s IDE instead of just the single one the developer is working on. By opening all files relevant to their project, developers automatically invoke GitHub Copilot to comb through all of the data and find matching pieces of code between their open files and the code around their cursor—and add those matches to the prompt.

That's cool, I have wondered to what extent the rest of my codebase is being used for context.


Oh, so it sends all my config secrets too? It's hard enough keeping it off in certain files https://github.com/orgs/community/discussions/13334 since the .copilotignore feature doesn't actually work. https://github.com/orgs/community/discussions/10305


Why are there config secrets in your IDE?


To communicate with remote APIs.


You can do that without placing secrets in your IDE, in fact doing so sounds like quite poor opsec.


Where do you put them?


Secrets Manager, never my computer.


What's the point of having a computer if you never run code on it lol.


I know how to run code locally without exposing secrets to anyone (or any app) that has access to my laptop.

You should learn how to do this if you want to be a competent developer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: