Open PixelT opened 6 years ago
Hello @PixelT , thanks for your suggestion. It's interesting that you want to edit the text on diff (and reflect them back to the original text, I assume?) because I actually wanted the text to be locked in the diff view when I developed this extension π
But I'd like to consider changing the behaviour (though the change would be not too easy).
By the way, is there any specific use-case you have with the native editable diff view?
For example: when I'm using CMS systems like Wordpress or Magento, it easier & faster to diff changes between my theme and default (parent) theme (if there was any changes or updates which I need or can add into my theme) and edit it directly in diff, because right now I must compare it with diff, then go to file, search place where the changes are and edit it manually in this file ;)
As I wrote, in default vsc diff it's possibility to edit one side :) Maybe a good option will be to add settings to set on / off possibility to edit on diff view?
Thanks for the information! Itβs always great to know the context so that i can understand how the current situation impacting you π
And yes, providing an option to choose editable or not, or a separate command can solve the dilemma.
+100 for editing both panels, or one of them if the other one is the clipboard. WebStorm allows this, and it's incredibly helpful. Use cases:
Thanks @dandv for your input. I really appreciate that you also provided the use cases!
This may be slightly out of scope for this specific issue (or even for this project) but I'd really love to see full merge capabilities.
http://winmerge.org/ is a good example of what I'm looking for. I am not requesting every single feature from WinMerge be added here, but specifically the ability to merge left or right. Basically "make both files match for this diff using what is on the left or right".
definitely a very heavy missing feature! Came across from PhpStorm and give VSCode a try. Was one of the first stuff I've searching for.
definitely a very heavy missing feature! Came across from PhpStorm and give VSCode a try. Was one of the first stuff I've searching for.
Same here. Feels like a missing feature when coming from PHPStorm.
Im not sure about how it merges in the clipboard case, but for the "Compare Text in Visible Editors", it can be achieved by changing the function/call to the same one as in VSCode Explorer (sidebar) 's "Select for Compare" + "Compare with Selected" .
In addition to winmerge
full merge use case referred above, a even more useful IMO feature would be partial merge exemplified by the following workflow:
Still without this function, hard to use.
This function would make this project explode, it would be very useful, don't think it will be added anymore but i still hope for it
When I'm using default vscode compare files options, I can edit the file on right directly on diff window / tab. Will be great if I can also edit file using your partial diff extension :)