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

github code search 怎么避免搜索重复代码?

  •  
  •   z740713651 ·
    AngusWG · Apr 29, 2021 · 2213 views
    This topic created in 1889 days ago, the information mentioned may be changed or developed.

    在 github 找解决方案(抄用法),搜 code 的时候总会搜到很多重复的 file 。
    大片大片一样的代码,非常浪费时间。
    请问一下各位大佬是怎么搜索代码、避免重复。

    google 上找到一篇文章

    对比搜索 'fire pytest' ,用了一下,感觉少了很多内容。

    想学习一个各位在 github 上搜索代码的姿势。

    示例

    4 replies    2021-05-06 15:07:16 +08:00
    Te11UA
        1
    Te11UA  
       Apr 29, 2021
    我也好想知道有没有可以折叠同一 repo 的功能……但是一直没找到这个参数
    Wincer
        2
    Wincer  
       Apr 29, 2021
    clone 下来,grep 搜(误
    z740713651
        3
    z740713651  
    OP
       Apr 29, 2021
    @Wincer #2
    我是想不同项目里
    某些包怎么用什么的
    不想看重复的代码(想抄答案又不想看重复的)

    比如对 fire 命令中 集成 fastapi app 的测试方法
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   959 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 21:44 · PVG 05:44 · LAX 14:44 · JFK 17:44
    ♥ Do have faith in what you're doing.