Settings

Theme

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

1 points by gantrol 2 years ago · 0 comments · 1 min read


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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection