Skip to content

cursor

key concept

symbol

use symbol to add context and make cursor do some action

symbolfunctiondemo
@codecode snippet
@fileinclude file to context
@Foldersinclude a floder to long contextuseful when you want context just point certain sub directory
@dochelp cursor understand extra knowledge
@gitsome git utils
@codebase
@webrun web search
@chatchat as context
@linksummray a link content

config

  • .cursorignore make cursor ingore some file, like .gitignore

shortcut

function blockshortcutfunctioncomment
config⌘⇧J
open cursor setting
interactive⌘Ltrigger ai chat in cursor
⌘⇧Ktrigger inline chat
⌘⌥Lafter open chat, use this shortcut to select history chat

trick

cursorrule

you can use https://cursorrules.agnt.one/chat to create rule prompt ,details see

https://docs.cursor.com/context/rules-for-ai#project-rules-recommended

  1. use claude/o1 to create instruction.md include project key info, reference https://x.com/FinanceYF5/status/1853790347434013065
    1. core function
    2. goal and rules
    3. tech stack and use package
    4. project outline
    5. db design
    6. login component
    7. login
  2. cursor rule makeer https://cursorrules.agnt.one/chat

useful docs

https://cursorpractice.com/en

tool

practice

  1. rule rely on order, some rule architecture https://forum.cursor.com/t/my-best-practices-for-mdc-rules-and-troubleshooting/50526/12