This repository is designed to provide a seamless integration of Visual Studio Code’s default keybindings into Cursor, while allowing for custom shortcuts specific to Cursor. The goal is to make Cursor more usable for those accustomed to VS Code’s shortcuts, especially since some of Cursor’s default keybindings differ, which can create challenges for users.
If you're a developer who enjoys using Cursor but finds it difficult to adapt due to changes in keybindings, this repository aims to solve that problem. By incorporating VS Code’s shortcuts into Cursor, you can maintain your familiar workflow while still benefiting from the unique features of Cursor. This will help in reducing the learning curve and make the transition smoother for VS Code users.
- Backup First: Before starting, make sure to backup your existing Cursor
keybindings.json
file. - Find/Create VS Code Keybindings: Obtain or create a JSON file containing the default keybindings from VS Code.
- Copy Keybindings: Copy the VS Code keybindings into Cursor’s
keybindings.json
file. - Add Cursor-specific Commands: If you want to keep or add Cursor-specific commands, manually edit the JSON file to include those custom bindings.
- Save & Restart: Save the changes and restart Cursor to apply the new keybindings.
- Certain Cursor-specific commands or features might stop working as expected.
- There may be differences between VS Code and Cursor that prevent some shortcuts from working properly.
- Future updates to Cursor might affect your customized keybindings.
To mitigate these risks:
- Keep your existing Cursor keybindings intact.
- Identify the specific shortcuts from VS Code you want to use.
- Manually add or modify only those specific shortcuts in Cursor’s
keybindings.json
file. This ensures you maintain the integrity of both environments without breaking any essential Cursor functionality.
This shortcut opens a new chat screen in Cursor, enabling you to interact with the AI chat functionality without navigating through menus.
This shortcut opens a new AI modal in Cursor, offering different behavior based on whether you’ve selected code or not.
This shortcut allows generating AI-suggested commands in the terminal. It can be triggered when the terminal is in focus and supports terminal processes, making it easier to run AI-generated code directly in the terminal environment.