Ask HN: How to Quick Copy Context Before Querying ChatGPT About Code? Before asking ChatGPT, how to quickly select relevant context. For example, if you want ChatGPT to fix a bug in `select` function, you may copy the function, dependencies, related variables, packages, or related functions, maybe add the main framework the project used... Recently, I developed a somewhat cumbersome solution by creating a VSCode plugin that allows for the direct selection of related files and merge them as a new tmp file (screenshots and details here: https://github.com/gantrol/quick-draft-before-chatgpt-vscode ). While this method works (limited), I think there could be a more streamlined approach. Thanks in advance for your insights and suggestions. |
No comments yet