Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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).

like image 584
subGlitch Avatar asked Dec 26 '17 14:12

subGlitch


People also ask

How do I enable the left bar in VS Code?

To hide/show the side bar: Ctrl + B on Linux and Windows. ⌘ Cmd + B on Mac.

How do you enable editing in VS Code?

In Tools > Options > (or Debug > Options) > Debugging > General, select Edit and Continue in the right pane.

How do I move the sidebar to the right in VS Code?

Conversation. VSCode tip: You can move the sidebar/file explorer to the right-hand side of your editor via View > Appearance > Move Side Bar Right. Try it out, and give yourself enough time to get used to it. If you're anything like me, you might find it makes a lot more sense there.

How do you compare files in VS Code?

Compare selected filesSelect two files in Solution Explorer and right-click to bring up the context menu. Then select Selected Files to see them side-by-side in the diff view.


1 Answers

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
like image 95
Alex Avatar answered Oct 28 '22 21:10

Alex