简体   繁体   中英

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:

在此处输入图像描述

Any ideas?

you should use Gitlens vs code extension for this

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 设置

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 .

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM