9
submitted 4 months ago by orac@feddit.nl to c/vscode@programming.dev

I need to be able to see the difference between the current working file and the previous commit as I am editing the file. The only history plugins I can find either use pop-ups (which disappear when I start typing) or a dedicated diff-view which takes up too much space on my small monitor.

you are viewing a single comment's thread
view the rest of the comments
[-] Lodra@programming.dev 2 points 4 months ago* (last edited 4 months ago)

I’m on my phone so I can’t really test these out. But this should give you a few methods for printing the list of files changed.

Here’s a similar page to show the changes for a specific file. I expect that git blame will be similarly useful.

A few others that may help you get started as well:

git —help
git rev-parse
git log
git history
[-] orac@feddit.nl 2 points 4 months ago

thanks so much for your help.

[-] Lodra@programming.dev 1 points 4 months ago

My pleasure. Thanks for posting! And feel free to ask more questions as you tackle this one.

this post was submitted on 17 Jun 2024
9 points (84.6% liked)

VS Code

784 readers
1 users here now

founded 1 year ago
MODERATORS