Cursor 指令大全
Cursor 指令大全收錄 Cursor IDE 快捷鍵、@ 指令、Composer、Agent Mode 與隱藏技巧,以繁體中文說明每個功能的用法。
目錄:8 個分類
找不到符合的指令
試試其他關鍵字
新手必看 TOP 10 5 個新功能
第一次用?從這些開始
Cmd+I 開啟 Composer Cmd+L 開啟 Chat Cmd+K 行內編輯 Cmd+. 模式選單 Tab 接受建議 Cmd+K (Terminal) 終端機指令 @Files 引用檔案 @Codebase 程式庫搜尋 .cursor/rules/ 新版規則目錄 Agent Mode (Cmd+.) Agent 模式 Cursor IDE 常用鍵盤組合快捷鍵
Cmd+I Cmd+L Cmd+K 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 在 Chat 或 Composer 中引用 context 的 @ 指令與 / 指令
@Files @Folders @Code @Codebase @Docs @Web @Commit @Branch @Definitions @Lint Errors @Past Chats @Cursor Rules #Files /edit /fix /test 專案規則、忽略檔案、自訂模式等設定
.cursorrules Settings > Rules .cursorignore .cursorindexingignore Custom Modes Settings > Models Settings > Chat > MCP Settings > Features > Docs Diff Display Settings Keybinding Customization Chat、Composer、Agent 模式與相關操作
Composer (Cmd+I) 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 補全、行內編輯、差異預覽等智慧輸入功能
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 MCP 整合、程式碼索引、語意搜尋、檢查點等進階能力
Codebase Indexing Semantic Search Checkpoints Image Context File Chunking Embedding Cache Custom Agent Modes VS Code Extensions Git Integration 訂閱方案、信用點數制度與模型選擇
Hobby (Free) 官方未在定價頁列固定數字;實際額度以 cursor.com 為準
Pro ($20/月) Pro+ ($60/月) Ultra ($200/月) Teams ($40/user/月) Enterprise (Custom) 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 方案免費,提供 code completions 與少量 premium 請求。不需信用卡。適合輕度體驗,日常開發建議升級 Pro。
資料來源
- Cursor 官方文件:docs.cursor.com
- 社群整理與實測驗證
本頁內容以 2026-04-22 版本為準。Cursor 持續更新中,建議搭配官方文件使用。