Cursor 指令大全
Cursor 指令大全收錄超過 111 個快捷鍵、@ 指令、Composer、Agent Mode 與隱藏技巧,以繁體中文說明每個功能的用法。
目錄:8 個分類
鍵盤快捷鍵23
Keyboard Shortcuts
Cursor IDE 常用鍵盤組合快捷鍵
Cmd+I Cmd+L Cmd+K Cmd+. Cmd+/ Cmd+Shift+P Tab Esc Ctrl+Right Arrow Cmd+K (Terminal) Cmd+Return F12 Alt+F12 Shift+F12 F2 Cmd+Shift+L Cmd+M Cmd+Return (選取) Cmd+Shift+Backspace Shift+Tab Cmd+R → Cmd+S Ctrl+Return Alt+Return @ 指令與斜線指令16
@ Commands & Slash Commands
在 Chat 或 Composer 中引用 context 的 @ 指令與 / 指令
@Files @Folders @Code @Codebase @Docs @Web @Commit @Branch @Definitions @Lint Errors @Past Chats @Cursor Rules #Files /edit /fix /test 設定與規則11
Rules & Configuration
專案規則、忽略檔案、自訂模式等設定
.cursorrules .cursor/rules/ Settings > Rules .cursorignore .cursorindexingignore Custom Modes Settings > Models Settings > Chat > MCP Settings > Features > Docs Diff Display Settings Keybinding Customization Chat 與 Composer13
Chat, Composer & Agent
Chat、Composer、Agent 模式與相關操作
Chat (Cmd+L) Composer (Cmd+I) Agent Mode (Cmd+.) Normal Mode YOLO Mode 啟用後 Agent 會自動執行 shell 指令,請確保在安全環境中使用
Bug Finder Inline Edit (Cmd+K) Terminal Cmd+K Diff Review Accept All Reject All AI Commit Message Merge Conflict Resolution Tab 自動完成12
Tab Completion & Inline Edit
Tab 補全、行內編輯、差異預覽等智慧輸入功能
Tab Completion Diff Popup Multi-line Suggestion Linter-aware Suggestions Recent Changes Context Partial Accept (Ctrl+Right) Override by Typing Cmd+K (無選取) Cmd+K (有選取) Context Ranking Diff Preview Enhanced Diff Display 進階功能12
Advanced Features
MCP 整合、程式碼索引、語意搜尋、檢查點等進階能力
MCP Integration Codebase Indexing Semantic Search Shared Indexing Checkpoints Image Context File Chunking Embedding Cache Custom Agent Modes VS Code Extensions Git Integration Symbol Navigation 模型與方案9
Models & Pricing
訂閱方案、信用點數制度與模型選擇
Hobby Plan Pro Plan ($20/月) Pro+ Plan ($40/月) Ultra Plan ($100/月) Business Plan ($40/seat/月) Credit System Model Auto-select Cmd+/ Model Cycle Slow Pool 常見問題
Cursor 的核心快捷鍵有哪些?
Cmd+I 開啟 Composer(多檔編輯)、Cmd+L 開啟 Chat(問答)、Cmd+K 行內編輯、Cmd+. 切換模式(Chat/Composer/Agent)、Tab 接受建議、Cmd+/ 切換 AI 模型。
Cursor 的 Chat、Composer、Agent 有什麼差別?
Chat(Cmd+L)是被動問答模式。Composer(Cmd+I)是主動多檔編輯模式。Agent(Cmd+.)是最自主模式,自動拉 context、執行終端指令,最多 25 個工具呼叫。
Cursor 的 @ 指令有哪些?
@Files 引用檔案、@Folders 引用資料夾、@Codebase 搜尋程式碼庫、@Docs 查官方文件、@Web 搜網頁、@Commit 引用未提交變更、@Branch 比較分支等。
.cursorrules 怎麼設定?
新版建議用 .cursor/rules/ 目錄,每個規則一個檔案,可版本控制。寫法像百科全書條目,告訴 Cursor 要做什麼(而非避免什麼)。避免「你是資深工程師」等身份宣稱。
Cursor 的 Tab 自動完成有多強?
Tab 建議不只是插入,還能修改周圍程式碼。支援多行建議(一次改 5-10 行)、根據 linter 錯誤建議修復、根據近期編輯改善建議。Ctrl+Right Arrow 可逐字接受。
Cursor 的 YOLO Mode 是什麼?
YOLO Mode 讓 Agent 自動執行終端指令並修復錯誤。例如跑 tsc 後自動修 TypeScript 錯誤、跑 pytest 後自動修測試失敗。可在設定中配置允許/禁止清單。
Cursor 免費版有什麼限制?
Hobby 方案免費,提供 2000 次 code completions + 50 次 premium 請求。不需信用卡。適合輕度體驗,日常開發建議升級 Pro($20/月)。
資料來源
- Cursor 官方文件:docs.cursor.com
- 社群整理與實測驗證
本頁內容以 2026-04-22 版本為準。Cursor 持續更新中,建議搭配官方文件使用。