It would be incredibly helpful to add a feature in Cursor IDE that allows users to drag and drop a folder or paste a code snippet directly into a workspace project and have the IDE auto-merge, translate, or integrate that code intelligently.
Developers often copy sample code from other projects, GitHub repos, or documentation, or drop folders from other environments (e.g., downloaded zip files, code archives, legacy systems). Manually integrating that code (resolving paths, renaming, adjusting framework conventions) takes time.
With this feature, Cursor could:
- Analyze the dropped folder or pasted code.
- Infer the language, libraries, and structure.
- Suggest how the code can be merged (e.g., as a component, module, or helper).
- Optionally translate the snippet into the target framework/language of the active project if needed (e.g., JavaScript → TypeScript, raw Node → Next.js, etc.).
- Display a side-by-side diff with options to apply, refactor, or discard.