visual-studio-codegitlens

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?


Solution

  • 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.