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.
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.
来源:https://stackoverflow.com/questions/25288926/visual-studio-diff-window-how-to-edit-sql-files