Skip to content

sourcegraph/sourcegraph-c9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sourcegraph for Cloud9

The Sourcegraph plugin for Cloud9 editor let's you quickly open and search code on Sourcegraph.com or your Sourcegraph Server instance easily and efficiently.

Installation

To load a plugin open your Init Script from Cloud9 > Open Your Init Script menu. And add code like this:

// check that this is the workspace you want to use
if (services.c9.workspaceId.match("{username}/{workspacename}")) {
    // call plugin manager with a list of plugins you want to load
    // this takes either url, or a path on your vm
    services.pluginManager.loadPackage([
        "https://cdn.rawgit.com/sourcegraph/sourcegraph-c9/v0.0.3/sourcegraph/c9build/package.sourcegraph.js",
    ])
}

Usage

In the command palette (Cmd+.), search for sourcegraph to see available actions.

Keyboard Shortcuts:

Description Mac Linux / Windows
Open file in Sourcegraph Option+O Alt+O
Search selection in Sourcegraph Option+S Alt+S

You can customize these keybindings in the preferences menu (Cmd+,)

Settings

  • Open Cloud9 -> Preferences (Cmd+,)
  • User Settings
  • Sourcegraph Server
  • Set the URL to your Sourcegraph Server instance or leave as the default Sourcegraph.com value.

Sourcegraph URL