Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 8, 2026

Adds JetBrains IDE as a selectable option for the default code editor, using the jetbrains:// URL scheme to open files directly in the user's installed JetBrains IDE.

Changes

  • URL generation (apps/desktop/src/lib/utils/url.ts): Extended getEditorUri() to handle JetBrains URL format when schemeId === 'jetbrains'. Uses jetbrains://idea/navigate/reference?project=...&path=... format where idea acts as a universal tool tag for all JetBrains products.

  • Settings UI (apps/desktop/src/components/profileSettings/GeneralSettings.svelte): Added "JetBrains IDE" entry to editor options dropdown.

  • Backend validation (crates/but-api/src/legacy/open.rs): Added "jetbrains" to allowed URL schemes.

Example

getEditorUri({
  schemeId: 'jetbrains',
  path: ['/home/user/project', 'src/main.ts'],
  line: 42,
  column: 10
})
// => "jetbrains://idea/navigate/reference?project=%2Fhome%2Fuser%2Fproject&path=src%2Fmain.ts%3A42%3A10"

The URL format follows the specification from issue #9984 comment, enabling seamless file navigation across IntelliJ IDEA, PyCharm, WebStorm, GoLand, and other JetBrains IDEs.

Original prompt

Add a Jetbrains IDE as an option for the "Default code editor" and make it so that it opens the file with a URL as specified in this comment: #9984 (comment)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
gitbutler-web Skipped Skipped Feb 8, 2026 3:12pm

Request Review

Copilot AI and others added 2 commits February 8, 2026 15:10
Co-authored-by: Byron <63622+Byron@users.noreply.github.com>
Co-authored-by: Byron <63622+Byron@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Jetbrains IDE as default code editor option Add JetBrains IDE support to default code editor options Feb 8, 2026
Copilot AI requested a review from Byron February 8, 2026 15:18
export function getEditorUri(params: EditorUriParams): string {
// JetBrains IDEs use a different URL format
if (params.schemeId === 'jetbrains') {
// Format: jetbrains://idea/navigate/reference?project=${project}&path=${filePath}:${line}:${column}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting fact, The first line is #1 in IDE, not 0, but the it starts from zero in url.
Like, if I open path=client.go:20:1, then it moves the carret to line 21:

Image

I'm not sure, how other editors work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants