Adds code intelligence to GitHub, GitLab, and other hosts: hovers, definitions, references. For 20+ languages.

Latest Version

Version
23.12.12.2159
Update
December 12, 2023
Size
8.22MiB
Developer
sourcegraph.com
Category
Users
100,000+
Rating
4.5503 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
Storage
ContextMenus
Https://github.com/*
Https://sourcegraph.com/*
See more

Sourcegraph Extension

The open-source Sourcegraph extension adds code navigation and code intelligence to GitHub, GitHub Enterprise, GitLab, Bitbucket Server and Phabricator.

• Code intelligence on your code host:
* Hover tooltips with documentation and type information
* Go to definition
* Find references

• Integrations with third-party services like Codecov coverage overlays, open-in-editor buttons and many more with Sourcegraph extensions

• Browser shortcut (src + Space) that performs the search on your Sourcegraph instance

It works for 20+ languages on public and private code on popular code hosts (see below).

MAKE IT WORK ON YOUR CODE HOST:

• GitHub - No action required. Your extension works here by default.
• GitHub Enterprise, GitLab, Bitbucket Server and Phabricator - grant additional permissions in the extension menu

Browser extension docs: https://docs.sourcegraph.com/integration/browser_extension

MAKE IT WORK FOR PRIVATE CODE:

To use the browser extension with your private repositories, you need to set up a private Sourcegraph instance and connect it to the extension.

Installation docs: https://docs.sourcegraph.com/admin/install


WHERE TO START?
After adding the extension you install it, try it out on any of these public repositories:

• Go: https://github.com/gorilla/mux/blob/9e1f59/mux.go or 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 or 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

This extension is open source: https://github.com/sourcegraph/sourcegraph/tree/main/client/browser
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "version": "23.12.12.2159", "name": "Sourcegraph", "manifest_version": 2, "description": "Adds code intelligence to GitHub, GitLab, and other hosts: hovers, definitions, references. For 20+ languages.", "browser_action": { "default_title": "Sourcegraph", "default_icon": { "32": "img/icon-32.png", "48": "img/icon-48.png", "128": "img/icon-128.png" } }, "icons": { "32": "img/icon-32.png", "48": "img/icon-48.png", "128": "img/icon-128.png" }, "background": { "scripts": [ "js/backgroundPage.main.bundle.js" ] }, "options_ui": { "page": "options.html", "open_in_tab": true }, "storage": { "managed_schema": "schema.json" }, "optional_permissions": [ "tabs", "http://*/*", "https://*/*" ], "content_security_policy": "script-src 'self' blob:; object-src 'self'", "web_accessible_resources": [ "img/*", "css/*", "extensions/*" ], "omnibox": { "keyword": "src" }, "permissions": [ "activeTab", "storage", "contextMenus", "https://github.com/*", "https://sourcegraph.com/*" ]}
Read more

Similar Extensions

icon

SimpRead - Reader View Extension · Productivity 100,000+ 2100 ★ 1.2MiB

icon

Octotree - GitHub code tree Extension · Developer Tools 100,000+ 1139 ★ 3.54MiB

icon

Refined GitHub Extension · Developer Tools 100,000+ 213 ★ 572KiB

icon

Enhanced GitHub Extension · Developer Tools 100,000+ 59 ★ 47.01KiB

icon

OctoLinker Extension · Developer Tools 100,000+ 110 ★ 184KiB

icon

Gitako - GitHub file tree Extension · Developer Tools 100,000+ 78 ★ 1.96MiB

icon

GitZip for github Extension · Developer Tools 100,000+ 170 ★ 367KiB

icon

GitCodeTree Extension · Developer Tools 100,000+ 38 ★ 489KiB

icon

Octohint Extension · Developer Tools 100,000+ 10 ★ 1.26MiB

icon

GitHub Hovercard Extension · Developer Tools 100,000+ 41 ★ 121KiB

icon

Smart TOC Extension · Productivity 100,000+ 100 ★ 81.44KiB

icon

稀土掘金 Extension · Productivity 100,000+ 339 ★ 4.66MiB

icon

FeHelper(前端助手) Extension · Developer Tools 100,000+ 321 ★ 2.72MiB

icon

GitHub Isometric Contributions Extension · Developer Tools 100,000+ 102 ★ 101KiB

icon

Git History Browser Extension Extension · Productivity 100,000+ 8 ★ 19.4KiB

icon

Omni - Bookmark, History, & Tab Manager Extension · Productivity 100,000+ 63 ★ 1.91MiB

icon

Markdown Here Extension · Productivity 100,000+ 367 ★ 534KiB

icon

Vimium Extension · Productivity 100,000+ 4468 ★ 272KiB

icon

GitHub Repository Size Extension · Developer Tools 100,000+ 80 ★ 12.9KiB

icon

RSSHub Radar Extension · Productivity 100,000+ 60 ★ 1.54MiB

icon

Notifier for GitHub Extension · Developer Tools 100,000+ 54 ★ 75.23KiB

icon

LeetCode Helper by labuladong Extension · Productivity 100,000+ 87 ★ 258KiB

icon

Pinbox - 跨平台收藏 Extension · Productivity 100,000+ 93 ★ 1.11MiB

icon

File Icons for GitHub and GitLab Extension · Developer Tools 100,000+ 48 ★ 460KiB

User reviews

icon

Yury Ershov (ID: 000000e2c395e56b) Voted 1 ★ - Updated 07/25/2023 Doesn't work for me at all. Throws this error in console and does nothing: "Sourcegraph: uncaught error handling code view Error: Failed to create file toolbar mount node: container not found."

icon

Виталий Дмитриев (ID: 0000004a6fa07ab8) Voted 5 ★ - Updated 02/19/2023 Extension is does not working now on Github repositories. "No hover information available." "Error: repo not found"

icon

root zero (ID: 0000000be837255e) Voted 5 ★ - Updated 09/03/2021 请问中文注释乱码问题有朋友遇到过吗

icon

Wu Ting (ID: 0000008c20e1d5c5) Voted 5 ★ - Updated 08/10/2021 nice

icon

wala Hertz (ID: 0000005c35a35a85) Voted 5 ★ - Updated 11/02/2020 很好用,就是遇到了markdown文件里的图片加载不出来的问题