There is no undo for Import VS Code Extensions and Settings. If you run it from the Command Palette by accident, Cursor replaces your user settings with your VS Code settings and installs the VS Code extensions that were not already in Cursor.
Your previous Cursor settings are still in local history. You can put them back.
1. Restore settings
- Open the Command Palette (
Ctrl+Shift+Pon Windows and Linux,Cmd+Shift+Pon macOS). - Run Preferences: Open User Settings (JSON).
- Run View: Open View… and choose Timeline.
- With
settings.jsonfocused, the Timeline lists older copies of that file. Right-click the snapshot from before the import and choose Restore Contents. - Run Developer: Reload Window.
If your shortcuts changed, do the same for keybindings.json. It sits next to settings.json:
- Linux:
~/.config/Cursor/User/ - macOS:
~/Library/Application Support/Cursor/User/ - Windows:
%APPDATA%\Cursor\User\
The Timeline snapshot is the last copy Cursor saved, which may be days or weeks old. Anything you changed in Cursor after that snapshot, and that was not also in VS Code, is not in that copy.
2. Remove the imported extensions
- Open the Extensions view (
Ctrl+Shift+XorCmd+Shift+X). - Uninstall the extensions that showed up at the time of the import. They are whatever was installed in VS Code and missing from Cursor. In my case that was Kotlin, Code Spell Checker, Brazilian Portuguese - Code Spell Checker, Android Dev Ext, and Prisma. Yours will match your VS Code install.
- Reload the window again.
That put my Cursor setup back.
A confirm dialog on this command would have avoided the whole thing.
Source
Thanks for oj7 for the suggestion.
