- 简介
- 下载
开源 Sourcegraph 扩展为 GitHub、GitHub Enterprise、GitLab、Bitbucket Server 和 Phabricator 添加了代码导航和代码智能。
• 代码主机上的代码智能:
- 带有文档和类型信息的悬停工具提示
- 去定义
- 查找参考资料
• 与第三方服务集成,例如 Codecov 覆盖范围、在编辑器中打开按钮等,以及 Sourcegraph 扩展
• 在您的 Sourcegraph 实例上执行搜索的浏览器快捷方式 (src + Space)
它适用于流行代码主机上的公共和私有代码的 20 多种语言(见下文)。
让它在您的代码主机上运行:
• GitHub - 无需任何操作。默认情况下,您的扩展程序在这里工作。
• GitHub Enterprise、GitLab、Bitbucket Server 和 Phabricator - 在扩展菜单中授予额外权限
浏览器扩展文档:https://docs.sourcegraph.com/integration/browser_extension
使其适用于私人代码:
要将浏览器扩展与您的私有存储库一起使用,您需要设置一个私有 Sourcegraph 实例并将其连接到扩展。
安装文档:https://docs.sourcegraph.com/admin/install
从哪儿开始?
添加安装它的扩展后,请在以下任何公共存储库中试用:
• 前往:https://github.com/gorilla/mux/blob/9e1f59/mux.go 或 https://github.com/dgrijalva/jwt-go/pull/152/files#diff-f615844d3497ff38db57e459d6ef657bL48
• Java:https://github.com/google/guava/blob/581ba1/guava/src/com/google/common/collect/ImmutableList.java
• TypeScript:https://github.com/angular/angular/blob/a2878b/packages/benchpress/src/reporter/console_reporter.ts 或 https://github.com/sindresorhus/got/pull/917/files#diff -02301bc46e8b878f10e9a8339efb7de7R176
• C#:https://github.com/paiden/Nett/pull/76/files#diff-e969e1315b2cb01bab80b2860be0d87eR52
• Python:https://github.com/ageitgey/face_recognition/blob/b8fed6/examples/facerec_on_raspberry_pi.py
这个扩展是开源的:https://github.com/sourcegraph/sourcegraph/tree/main/client/browser