问题
In Visual Studio Code I open file-VS-file compare mode via:
- clicking on the file A and then "Select for Compare"
- clicking on the file B and then "Compare A with B"
The problem is that I can edit file B (RIGHT side), but can't edit file A (LEFT side).
回答1:
Edit: this should be working out of the box in vscode version 1.41.0
It will show Unknown configuration setting
but it's working.
"diffEditor.originalEditable": true
回答2:
like mentioned here.
Open VSCode, open the command palette (on windows it's Ctrl + shift+ P), then type setting and open the Preferences: Open Settings (JSON)
Then you will see something like this:
Paste "diffEditor.originalEditable": true,
inside the {}
Example:
来源:https://stackoverflow.com/questions/47980217/visual-studio-code-cant-edit-left-side-file-during-compare