Visual Studio Code: can't edit LEFT-side file during COMPARE

核能气质少年 提交于 2019-12-19 17:45:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!