Ask HN: How to Quick Copy Context Before Querying ChatGPT About Code?

1 points by gantrol ↗ HN
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.

0 comments

[ 122 ms ] story [ 1077 ms ] thread

No comments yet.