getcursor / cursor

The AI-powered code editor
https://cursor.sh
20.57k stars 1.38k forks source link

[Feature Request] Automatic imports on suggestion completion #1395

Open smaccoun opened 2 months ago

smaccoun commented 2 months ago

Is your feature request related to a problem? Please describe. It's (very mildly) annoying when tabbing to complete a suggestion to then have to go through any non-imported packages and import them

Describe the solution you'd like When tabbing to complete a suggestion, it would be nice to have it attempt to automatically import any non-imported packages that are part of the suggestion. This should probably be a setting you can toggle

PoignardAzur commented 2 months ago

Agreed. Fiddling with imports is one of the few things that take me out of the flow when using Copilot++.