• 请不要在回答技术问题时复制粘贴 AI 生成的内容
SEVLT
V2EX  ›  程序员

VScode 搜索并 Open in editor 后出现不匹配条目

  •  
  •   SEVLT · Aug 5, 2022 · 1086 views
    This topic created in 1406 days ago, the information mentioned may be changed or developed.

    1 2

    有遇到过类似情况的吗?是我哪里设置有问题吗?

    3 replies    2022-08-05 15:10:25 +08:00
    thinkershare
        1
    thinkershare  
       Aug 5, 2022
    这是一个 feature, 这个界面会将找到的前后一行都保留下来, 否则很容易不知道查找到的内容在原文档的什么地方.
    SEVLT
        2
    SEVLT  
    OP
       Aug 5, 2022
    @thinkershare 明白了,这个有开关控制吗?阅读 log 的话感觉还是不要这个 feature 顺手
    SEVLT
        3
    SEVLT  
    OP
       Aug 5, 2022
    解决了,图 2 右上角数字“1”这里即表示检索结果包含 1 行上下文,可以修改成 0 ;并且可以在设置搜索“Context Lines”修改默认值。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2636 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:03 · PVG 00:03 · LAX 09:03 · JFK 12:03
    ♥ Do have faith in what you're doing.