V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
shuffblow
V2EX  ›  Cursor

为何 cursor 的回答没法直接跳转到具体行号的代码

  •  
  •   shuffblow · Jul 1, 2025 · 891 views
    This topic created in 309 days ago, the information mentioned may be changed or developed.

    和 cursor 的 agent 对话的时候,他所有回答中都没法直接点击跳转到具体代码中,请问有没有啥提示词可以提前约束

    例如下面这个回答,我想要的是点击文件中的路径跳转到对应行号,而不是行号另外写,链接仅仅跳到文件: [ERROR] 不安全的对象访问 文件:client/src/pages/ExternalAgent/Pages/CancelAcount/index.jsx 行号:28 问题:直接访问 res.userName 可能导致空指针异常 建议: Apply to index.jsx tUserName(res?.userName || '') setUserName(res?.userName || '')

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4073 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 05:10 · PVG 13:10 · LAX 22:10 · JFK 01:10
    ♥ Do have faith in what you're doing.