Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here's the system Prompt Template they use : https://github.com/microsoft/vscode-copilot-chat/blob/4c72d6...


"- cursor position marked as ${CURSOR_TAG}: Indicates where the developer's cursor is currently located, which can be crucial for understanding what part of the code they are focusing on."

I was not aware that was a thing and useful to know. Thanks!


Interesting to hear how others use these tools. I often phrase things as “this line/method” which implies the tool knows where my cursor is.


I use the in-line prompt when I’m talking about a specific area. In the chat I always explained in words what part of the code I’m talking about. This tidbit of information will change how I use chat.


Isn't that needed for the tab completion?


I assumed they had this already, but I began to suspect it didn't actually exist. Disappointed to learn I was right bc half the time copilot pretends it can't read my code and at all asks me to go look for stuff in the code.




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

Search: