V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sbldehanhan
V2EX  ›  C++

阅读代码需要什么工具吗?

  •  
  •   sbldehanhan · 263 天前 · 2508 次点击
    这是一个创建于 263 天前的主题,其中的信息可能已经有所发展或是发生改变。

    像 source insight 这种东西真的有用吗?

    14 条回复    2023-08-10 09:51:49 +08:00
    didikee
        1
    didikee  
       263 天前
    我刚开始学习的时候用了,在查系统源码时比较方便。
    zengxs
        2
    zengxs  
       263 天前
    source insight 这东西也太古早了,现在可以考虑用 sourcegraph
    cnbatch
        3
    cnbatch  
       263 天前   ❤️ 2
    我在公司内会用 Visual Studio 企业版的 Code Maps 辅助阅读。中文名叫做“代码图”。
    https://learn.microsoft.com/en-us/visualstudio/modeling/map-dependencies-across-your-solutions
    https://learn.microsoft.com/zh-cn/visualstudio/modeling/map-dependencies-across-your-solutions

    在家的话……家用电脑从来不看公司内容,都是只看别人的开源项目,我懒得看那么细致。Unix 使用 grep + find ,Windows PowerShell 使用 select-string ,查清楚调用关系就算了。
    thinkm
        4
    thinkm  
       263 天前
    主 C++,用 source insight 习惯了,也感觉很方便 没有换工具的想法
    yngzij
        5
    yngzij  
       263 天前
    source insight 我买了,看 C++还是不错的,子窗口函数详情,但是 golang ,python 之类的就不太好用了。
    ruanimal
        6
    ruanimal  
       263 天前
    understand 和 source insight 类似,不过现在应该是都用 vscode 了吧
    sbldehanhan
        7
    sbldehanhan  
    OP
       263 天前
    @ruanimal #6 VSCode 不能生成函数调用关系图和类图。我想要这两个功能。
    zzz22333
        8
    zzz22333  
       263 天前
    source insight 用不习惯,同想找一个可以看函数调用关系图和类图的工具
    PowerDi
        9
    PowerDi  
       263 天前
    @sbldehanhan 有解决方案了吗
    NessajCN
        10
    NessajCN  
       263 天前
    @sbldehanhan 都有啊....
    rioshikelong121
        11
    rioshikelong121  
       263 天前
    vscode 有什么插件可以辅助代码阅读么。
    zhiyu1998
        12
    zhiyu1998  
       262 天前
    ChatGPT code interpret
    mahaoqu
        13
    mahaoqu  
       262 天前
    codebrowser.dev 读 C++还是挺好的
    sbldehanhan
        14
    sbldehanhan  
    OP
       262 天前
    @NessajCN #10 是插件吗?有推介的吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2846 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:03 · PVG 23:03 · LAX 08:03 · JFK 11:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.