Rawle
Rawle

Reputation: 199

Visual Studio Diff Window: How to Edit .sql Files

When using Visual Studio, select a pending change to a .sql file. Select "Compare with Latest" or "Compare with Workspace Version." The file opens in the Diff Window.

Is there any way to be able to edit the .sql file in the Diff Window? This functionality is available when comparing other file types.

Upvotes: 17

Views: 2608

Answers (2)

Alex Eisenhart
Alex Eisenhart

Reputation: 125

It looks like this issue was fixed 5 days ago! https://developercommunity.visualstudio.com/t/WFR-Some-files-are-not-editable-when-u/396873?space=8&stateGroup=active&ftype=idea&sort=newest&scope=follow

The documented solution is to upgrade to Visual Studio 2022 version 17.4. I ran into this issue today on VS 2022 ver 17.1.0. I just finished upgrading to 17.4.0 and I can confirm that the problem is now gone!

...in other words, I can now click "Compare with unmodified" on a .SQL file and then edit the right pane (the file on disk).

Upvotes: 0

OmletsForBreakfast
OmletsForBreakfast

Reputation: 161

What you want is not currently possible. This link from the Visual Studio Developer Community says:

We have determined that this issue will not be addressed in the upcoming release. We will continue to evaluate it for future releases.

You can vote on the issue at the link and get status updates from Microsoft if it changes.

Upvotes: 11

Related Questions