-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git: Use VS Code as merge editor #5770
Comments
Not supported yet. |
Is this feature being included in the next iteration, by any chance? |
Probably not, this is a big endeavour, since a merge UI needs to be implemented. |
Is there any plan for the merge UI to support three-way merging? (e.g. change a, change b, common ancestor) |
We wouldn't have it any other way. 😉 |
Can't upvote this one enough. This is the top scenario for me to fall back to a different editor/IDE (*cough* memory-hog Webstorm cough) :) |
If possible, this would be a godsend, due to several reasons:
Like I said, meld is ok, but it'd be super if vscode would some day be used in that scenario. |
Visual Studio was always my code merger of choice. Would love to see this feature! |
No problem on using other git mergetool but really would like to see own merge UI happen really soon!! |
😐 meh. I expect these features in heavy weight IDEs. In vscode's class of light weight editors (in which I'd consider atom, sublime, etc) I don't. For git-related activities I favor a terminal and vim for conflict resolution. The GUI crowd already has great uni-taskers like meld, diffmerge, kaleidoscope, etc. @kumarharsh that's a good point about immediate feedback (e.g.; linting.) Going the vim route above, I suppose you can set git's default external editor to vscode... tho could be a pain to provide context to the project-specific linting/syntax/etc rules. |
+1 |
can this feature be implemented as an extension of vscode? or any exists ext recommended. |
I dont think so, as i can see extesions are not allowed to create ui features
Enviado do meu telefone Windows 10
De: Tank Sui
Enviado:quarta-feira, 7 de dezembro de 2016 10:41
Para: Microsoft/vscode
Cc:Herbert Pimentel; Comment
Assunto: Re: [Microsoft/vscode] Using VS Code as a git mergetool (#5770)
can this feature be implemented as an extension of vscode? or any exists ext recommended.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The plugin can provide UI features: look at Git History. It renders a webview, which can "potentially" be used as a merge-tool. But I think it'll be very hard for a plugin to do it without some level of support by vscode itself. |
Main issue with kaleidoscope, meld, etc tools is in very typical use-case: |
P4merge's 4-pane 3-way merge UI is excellent. |
allowing us to see the diff (incredibly useful features in an editor) but not giving us a way to merge is very underwhelming |
A VS Code extension would be perfect for merging conflicts. |
+1 |
Git side by side conflict resolver not working in latest VS code. Version 1.10.2 |
Would really like to be able to edit code while merging while using my code editor (vscode), rather than having to use some other editor. |
Three-way merging / diffing is the way to go for sure |
The missing point is that we don't have 3 or 5 line conflicts. Current inline diffs are not practical for conflicts with over 20 lines even we have 2K and 4K monitors. Also, it would be great to have the ability to mark reviewed diffs not to check again and again. |
So, the feature is there starting from 1.69. However, I haven't figured out yet how to open the three-way merge from command line that is required for using it as a true git mergetool. For the difftool I use |
* introduce `--merge` to bring up merge editor (for #5770) * wait on proper editor when merging * sqlite slowness * disable flush on write in tests unless disk tests * more runWithFakedTimers * disable flush also in pfs * introduce `IResourceMergeEditorInput` * cleanup * align with merge editor names * stronger check * adopt `ResourceSet` * no need to coalesce * improve `matches` method
Landed in todays insider as:
In order to use it for git, you also need to add the
You can give our preview releases a try from: https://code.visualstudio.com/insiders/ I suggest to open new issues for issues found and close this one. One feature request on my backlog is to allow to provide labels for the |
@bpasero i tested it . looks good for me . |
Same as for the CLI support, feedback for the merge editor should be reported as individual issues. |
As @bpasero said: new, separate issues please! Before that consult the list of remaining bugs and feature-requests: merge-editor |
1.0.0 introduced the ability to use VS Code as a git difftool. The relevant global
.gitconfig
lines are as follows:How can I use VS Code as a git mergetool?
The relevant arguments it needs to accept, I believe, are
$LOCAL
,$REMOTE
,$BASE
, and$MERGED
.The text was updated successfully, but these errors were encountered: