{"id":13705779,"url":"https://github.com/sourcegraph/sourcegraph-jetbrains","last_synced_at":"2025-05-05T17:30:26.931Z","repository":{"id":20547037,"uuid":"90224626","full_name":"sourcegraph/sourcegraph-jetbrains","owner":"sourcegraph","description":"Sourcegraph for JetBrains IDEs (IntelliJ)","archived":true,"fork":false,"pushed_at":"2023-11-14T15:51:07.000Z","size":277,"stargazers_count":37,"open_issues_count":0,"forks_count":14,"subscribers_count":64,"default_branch":"main","last_synced_at":"2024-08-03T22:15:58.628Z","etag":null,"topics":["gogland","gogland-plugin","intellij","intellij-platform","intellij-plugin","jetbrains","repo-type-editor","sourcegraph"],"latest_commit_sha":null,"homepage":"https://sourcegraph.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcegraph.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-04T05:23:20.000Z","updated_at":"2024-07-17T10:17:16.000Z","dependencies_parsed_at":"2023-11-14T17:02:56.629Z","dependency_job_id":null,"html_url":"https://github.com/sourcegraph/sourcegraph-jetbrains","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fsourcegraph-jetbrains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fsourcegraph-jetbrains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fsourcegraph-jetbrains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Fsourcegraph-jetbrains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","download_url":"https://codeload.github.com/sourcegraph/sourcegraph-jetbrains/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224455916,"owners_count":17314206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gogland","gogland-plugin","intellij","intellij-platform","intellij-plugin","jetbrains","repo-type-editor","sourcegraph"],"created_at":"2024-08-02T22:00:47.818Z","updated_at":"2024-11-13T13:30:53.625Z","avatar_url":"https://github.com/sourcegraph.png","language":"Java","readme":"\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n**⚠️ Development of the JetBrains plugin has [moved to `sourcegraph/jetbrains`](https://github.com/sourcegraph/jetbrains).**\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003c!-- Plugin description --\u003e\n\n# Sourcegraph for JetBrains IDEs [![JetBrains Plugin](https://img.shields.io/badge/JetBrains-Sourcegraph-green.svg)](https://plugins.jetbrains.com/plugin/9682-sourcegraph)\n\n- Search snippets of code on Sourcegraph.\n- Copy and share a link to code on Sourcegraph.\n- Quickly go from files in your editor to Sourcegraph.\n\u003c!-- Plugin description end --\u003e\n\nThe plugin works with all JetBrains IDEs including:\n\n- IntelliJ IDEA\n- IntelliJ IDEA Community Edition\n- PhpStorm\n- WebStorm\n- PyCharm\n- PyCharm Community Edition\n- RubyMine\n- AppCode\n- CLion\n- GoLand\n- DataGrip\n- Rider\n- Android Studio\n\n## Installation\n\n- Select `IntelliJ IDEA` then `Preferences` (or use \u003ckbd\u003e⌘,\u003c/kbd\u003e)\n- Click `Plugins` in the left-hand pane.\n- Choose `Browse repositories...`\n- Search for `Sourcegraph` -\u003e `Install`\n- Restart your IDE if needed, then select some code and choose `Sourcegraph` in the right-click context menu to see actions and keyboard shortcuts.\n\n## Configuring for use with a private Sourcegraph instance\n\nThe plugin is configurable _globally_ by creating a `.sourcegraph-jetbrains.properties` (or `sourcegraph-jetbrains.properties` pre-v1.2.2) in your home directory. For example, modify the following URL to match your on-premises Sourcegraph instance URL:\n\n```\nurl = https://sourcegraph.example.com\ndefaultBranch = example-branch\nremoteUrlReplacements = git.example.com, git-web.example.com\n```\n\nYou may also choose to configure it _per repository_ using a `.idea/sourcegraph.xml` (or `idea/sourcegraph.xml` pre-v1.2.2) file in your repository like so:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cproject version=\"4\"\u003e\n  \u003ccomponent name=\"com.sourcegraph.project.SourcegraphConfig\"\u003e\n    \u003coption name=\"url\" value=\"https://sourcegraph.example.com\"/\u003e\n    \u003coption name=\"defaultBranch\" value=\"example-branch\"/\u003e\n    \u003coption name=\"remoteUrlReplacements\" value=\"git.example.com, git-web.example.com\"/\u003e\n  \u003c/component\u003e\n\u003c/project\u003e\n```\n\nBy default, the plugin will use the `origin` git remote to determine which repository on Sourcegraph corresponds to your local repository. If your `origin` remote doesn't match Sourcegraph, you may instead configure a `sourcegraph` Git remote which will take priority.\n\n## Questions \u0026 Feedback\n\nPlease file an issue: https://github.com/sourcegraph/sourcegraph-jetbrains/issues/new\n\n## Uninstallation\n\n- Select `IntelliJ IDEA` then `Preferences` (or use \u003ckbd\u003e⌘,\u003c/kbd\u003e)\n- Click `Plugins` in the left-hand pane.\n- Search for `Sourcegraph` -\u003e Right click -\u003e `Uninstall` (or uncheck to disable)\n\n## Development\n\n- Start IntelliJ and choose `Check out from Version Control` -\u003e `Git` -\u003e `https://github.com/sourcegraph/sourcegraph-jetbrains`\n- Develop as you would normally (hit Debug icon in top right of IntelliJ) or using gradlew commands:\n  1. `./gradlew runIde` to run an IDE instance with sourcegraph plugin installed. This will start the platform with the versions defined in [`gradle.properties`](https://github.com/sourcegraph/sourcegraph-jetbrains/blob/main/gradle.properties#L14-L16). _Note: 2021.3 is required for M1 Macs._\n  2. `./gradlew buildPlugin` to build plugin artifact (`build/distributions/Sourcegraph.zip`)\n\n## Publishing a new version\n\nThe publishing process is based on the actions outlined in the [`intellij-platform-plugin-template`](https://github.com/JetBrains/intellij-platform-plugin-template).\n\n1. Update `gradle.properties` and set the version number for this release (e.g. `1.2.3`).\n2. Create a [new release](https://github.com/sourcegraph/sourcegraph-jetbrains/releases/new) on GitHub.\n3. Pick the new version number as the git tag (e.g. `v1.2.3`).\n4. Copy/paste the `[Unreleased]` section of the [`CHANGELOG.md`](https://github.com/sourcegraph/sourcegraph-jetbrains/blob/main/CHANGELOG.md) into the GitHub release text.\n5. Once published, a GitHub action is triggered that will publish the release automatically and create a PR to update the changelog and version text. You may need to manually fix the content.\n\n## Version History\n\nSee [`CHANGELOG.md`](https://github.com/sourcegraph/sourcegraph-jetbrains/blob/main/CHANGELOG.md).\n","funding_links":[],"categories":["Extensions"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Fsourcegraph-jetbrains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcegraph%2Fsourcegraph-jetbrains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Fsourcegraph-jetbrains/lists"}