felix001
felix001

Reputation: 16691

How to enable VSCode Interactive Editor

Im using Vscode and Gitlens. I want to be able to do an interactive rebase. I have core.editor=code --wait set. But when I try and run a rebase I get the text-based editor instead, like so:

enter image description here

Any ideas?

Upvotes: 12

Views: 14992

Answers (4)

ystal
ystal

Reputation: 1

in bash type command:

git config --global sequence.editor "code --wait --reuse-window"

then CTRL + SHIFT + P and type "PATH" and pick: "Shell Command: Install 'code' command in PATH"

Here you go

Upvotes: 0

Omar
Omar

Reputation: 1101

This worked for me. just execute the following command on your terminal

git config --global sequence.editor "code --wait --reuse-window"

Now execute the following command on VS Code Terminal to get GitLens Interactive editor.

git rebase -i <branch_name>

Upvotes: 14

Bhargavi Annadevara
Bhargavi Annadevara

Reputation: 5492

Please check if the interactive rebase editor option is checked from within the GitLens settings in VS Code:

Ctrl + Shift + P > GitLens: Open Settings

GitLens Settings

You should then be able to invoke the interactive rebase editor from both the VS Code command palette, or from the terminal as follows:

git -c sequence.editor="code --wait --reuse-window" rebase --interactive <base>

If you're on the VS Code Insiders edition, replace code in the above with code-insiders.

Upvotes: 17

Bhuwan Chandra
Bhuwan Chandra

Reputation: 315

you should use Gitlens vs code extension for this

Upvotes: -5

Related Questions