continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.25k stars 1.66k forks source link

Add option to send only selected code/text to AI instead of entire file context. #2888

Open ghominejad opened 4 days ago

ghominejad commented 4 days ago

Validations

Problem

Even when using Selection Mode (Cmd/Ctrl + Shift + L), the entire file is sent as context internally.

Solution

Benefits