caponetto / vscode-diff-viewer

A simple VS Code extension to easily visualize git diff files.
https://marketplace.visualstudio.com/items?itemName=caponetto.vscode-diff-viewer&ssr=false#overview
MIT License
44 stars 5 forks source link

Add button to show raw file #102

Open bombillazo opened 1 month ago

bombillazo commented 1 month ago

First off, thanks for this extension, it is a must have for me and I appreciate the work.

Currently there is no way to turn off the diff viewer and edit the raw file. Usually extensions that allow you to view/preview files always give you a button to see the raw contents of the file:

image

I currently have no way to view the file in VS code since it will always show the diff viewer.

caponetto commented 1 month ago

Hi @bombillazo The extension doesn't have a button for that because VS Code already allows it. Right-click your file > "Open With ..." > "Text Editor". Does it help?

bombillazo commented 1 month ago

Oh, ok, yes that helps, but it's kind of cumbersome and wasn't intuitive to me... I find it very convenient how the markdown preview works where they have a button to switch between source mode and preview mode.

image image