Cursor IDE

Anh-Thi Dinh
draft
⚠️
This is a quick & dirty draft, for me only!
Note: VSCode

Refs

Setting up

  • Move the Cursor Chat / Activity bar to the left: right click on the header of the chat and choose Move Secondary Side Bar Left.

Keyboard Shortcuts

  • Fold blocks: cmd+r then cmd+1 (level 1) ← VSCode’s cmd+k is used for “Quick Edit” in Cursor!
  • Unfold all: cmd+r then cmd+j
Replace all cmd+k (vscode) by cmd+r

Auto-run mode

⚠️
Use caution when enabling this option—it's disabled by default. Previously, this feature was known as SOLO mode.
It allows Agent to run tools without asking for confrimation, such as executing commands and writing to files.

CLI commands

To open file with code file.ts or cursor file.ts. Read this doc.

Rules

MCP Server

  • Some notable servers (my choices):
    • serena — A powerful coding agent toolkit providing semantic retrieval and editing capabilities (MCP server & Agno integration)
    • Brave Search - Web and local search using Brave's Search API
    • Memory - Knowledge graph-based persistent memory system
    • PostgreSQL - Read-only database access with schema inspection
    • Sqlite - Database interaction and business intelligence capabilities
    • Sequential Thinking - Dynamic and reflective problem-solving through thought sequences
    • Git - Tools to read, search, and manipulate Git repositories
    • Broswser MCP — allows AI applications to control your browser

Troubleshooting

  • If code blocks aren't visible in the chat panel: Click the "…" button in the top right of the panel → Select "Open Chat as Editor" (code blocks will appear) → You can then return to the panel view by clicking "Open Chat in Pane" and the code blocks will remain visible.