# sourcegraph-c9
**Repository Path**: mirrors_sourcegraph/sourcegraph-c9
## Basic Information
- **Project Name**: sourcegraph-c9
- **Description**: Sourcegraph for Cloud9 https://sourcegraph.com
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-11-23
- **Last Updated**: 2026-04-26
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# 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.
