Cursor is a code editor built on VS Code, so it inherits most of VS Code's keyboard shortcuts. The fastest way to learn them is to start with the ones you'll use every minute: opening files, searching, editing lines, and navigating. You don't need to install anything extra—just open Cursor and try these. Note that menu labels and some shortcuts can differ slightly by version, operating system, or region.

What You'll Need

  • Cursor installed on your computer (Windows, macOS, or Linux).
  • A project folder or file open so you can test shortcuts.
  • Basic familiarity with your keyboard layout—some shortcuts use the Windows/Command key.

Step-by-Step

  1. Open the Command Palette. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS). This is the single most useful shortcut: it lets you run any command by name without memorizing its keybinding. Type what you want to do, such as "toggle terminal" or "format document," and press Enter.
  2. Quick open files. Press Ctrl+P (or Cmd+P) to search for a file by name in your workspace. Start typing part of the filename and press Enter to open it. This avoids clicking through folders.
  3. Search across your project. Press Ctrl+Shift+F (or Cmd+Shift+F) to open the search panel. Type your term and press Enter. Use the match case and whole word toggles in the search box to narrow results.
  4. Find and replace in the current file. Press Ctrl+F (or Cmd+F) to find, and Ctrl+H (or Cmd+Option+F on macOS) to replace. In the replace field, you can use the replace and replace-all buttons.
  5. Move and duplicate lines. Place your cursor on a line and press Alt+Up or Alt+Down (or Option+Up/Down on macOS) to move the line up or down. Press Shift+Alt+Up or Shift+Alt+Down (or Shift+Option+Up/Down) to duplicate the line.
  6. Delete a line quickly. Press Ctrl+Shift+K (or Cmd+Shift+K) to delete the current line without selecting it first.
  7. Comment and uncomment. Press Ctrl+/ (or Cmd+/) to toggle a line comment. For block comments, use Shift+Alt+A (or Shift+Option+A).
  8. Open the integrated terminal. Press Ctrl+` (backtick) or Cmd+` to toggle the terminal panel. This is handy for running build commands without leaving the editor.
  9. Navigate between open tabs. Press Ctrl+Tab to cycle through open editors. For a list of all open tabs, press Ctrl+Shift+Tab (or Cmd+Shift+Tab).
  10. Go to a specific line. Press Ctrl+G (or Cmd+G) and type the line number. This works in the current file.
  11. Jump to a symbol. Press Ctrl+Shift+O (or Cmd+Shift+O) to list functions, classes, or variables in the current file. Start typing to filter and press Enter to jump.
  12. Multi-cursor editing. Hold Alt (or Option) and click to add cursors. Or press Ctrl+Alt+Down (or Cmd+Option+Down) to add a cursor below. This lets you edit multiple lines at once.
  13. Select the current word or line. Double-click a word to select it. To select the whole line, press Ctrl+L (or Cmd+L). Press again to select the next line.
  14. Format your code. Press Shift+Alt+F (or Shift+Option+F) to format the entire document. For a selection, select the code first and then use the same shortcut.
  15. Open settings. Press Ctrl+, (or Cmd+,) to open the settings editor. From there you can search for any setting by name.
  16. Toggle the sidebar. Press Ctrl+B (or Cmd+B) to show or hide the left sidebar. This gives you more editing space.
  17. Zen mode. Press Ctrl+K Z (or Cmd+K Z) to enter Zen mode, which hides all panels and centers the editor. Press Esc Esc to exit.
  18. Customize shortcuts. Open the Command Palette (Ctrl+Shift+P) and type "Preferences: Open Keyboard Shortcuts" to see and change any keybinding. You can search for a command and assign a new shortcut.

Common Mistakes

  • Using the wrong modifier key. On macOS, use Cmd where you'd use Ctrl on Windows/Linux. Mixing them up is the most common reason a shortcut "doesn't work."
  • Assuming all VS Code extensions work. Cursor supports many VS Code extensions, but some may not be fully compatible. If a shortcut tied to an extension fails, check the extension's documentation.
  • Forgetting that shortcuts can be context-sensitive. For example, Ctrl+F searches the current file, but if the terminal is focused, it searches the terminal output. Click back into the editor before using editor shortcuts.
  • Overwriting default shortcuts. When customizing, avoid assigning a shortcut that conflicts with an existing one. Cursor will warn you, but it's easy to miss.
  • Not using the Command Palette. Many users try to memorize every shortcut. Instead, use Ctrl+Shift+P to discover commands and their current keybindings.

Tips

  • Print or keep a cheat sheet of the shortcuts you use most. Cursor's official documentation has a full list, and the built-in Keyboard Shortcuts editor (under Preferences) shows everything.
  • Learn one new shortcut per day. Start with navigation and editing, then move to refactoring and debugging.
  • Use Ctrl+K (or Cmd+K) to open Cursor's inline AI chat for quick edits—this is a Cursor-specific feature, not a VS Code default.
  • If you're coming from another editor, you can install a keymap extension (like Vim or Sublime Text) from the extensions marketplace to keep your muscle memory.
  • Practice multi-cursor editing: it saves a lot of time when renaming variables or editing similar lines.

Troubleshooting

If a shortcut does nothing, first click inside the editor to ensure it has focus. Then check that the shortcut isn't overridden by another extension or your operating system. On macOS, some shortcuts may conflict with system-wide keys; you can change them in System Settings > Keyboard > Shortcuts. If the Command Palette doesn't open, try restarting Cursor. If shortcuts still fail, open the Keyboard Shortcuts editor and search for the command to see its current binding. You can also reset all keybindings to default from that editor. Remember that labels and exact key combinations can vary slightly by version, so if something doesn't match, use the Command Palette to find the command by name.

Frequently Asked Questions

Does Cursor use the same shortcuts as VS Code?

Yes, Cursor is built on VS Code and inherits its default keybindings. Most VS Code shortcuts work identically, though Cursor adds some AI-specific shortcuts.

How do I see all available shortcuts?

Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P) and type "Preferences: Open Keyboard Shortcuts". This opens a searchable list of every command and its keybinding.

Can I change a shortcut?

Yes. In the Keyboard Shortcuts editor, find the command, click the pencil icon next to it, and press your new key combination. You can also right-click a command to reset it.

Why doesn't Ctrl+Shift+P work for me?

On some keyboard layouts or operating systems, that combination may be reserved. Try F1 instead—it opens the Command Palette in Cursor and VS Code. If that also fails, check for conflicting extensions.

Are there Cursor-specific shortcuts?

Yes, Cursor includes shortcuts for its AI features, such as Ctrl+K (or Cmd+K) for inline edit and Ctrl+L (or Cmd+L) for opening the chat panel. These are not part of standard VS Code.

Do shortcuts work in the terminal panel?

Some do, but many editor shortcuts are disabled when the terminal has focus. Press Ctrl+` to toggle focus back to the editor, or click in the editor area.