My Code Helper
JavaScript
Python
Java
C#
C++
Ruby
Swift
Kotlin
TypeScript
Go
Rust
PHP
C
Objective-C
Dart
Scala
Perl
Lua
Haskell
R
MATLAB
VBA
F#
Groovy
Clojure
Elixir
Julia
CoffeeScript
Crystal
COBOL
Fortran
Ada
PL/SQL
T-SQL
Assembly
Shell Scripting
PowerShell
Bash
Racket
Scheme
Prolog
Erlang
Lisp
APL
Haxe
Pascal
Ada
Logo
Tcl
D
Nim
Io
ABAP
Scheme
FORTRAN
APL
COBOL
ALGOL
BASIC
PL/I
Lisp
Cobol
Forth
Ada
C
C++
Java
Python
JavaScript
Ruby
PHP
Swift
Kotlin
Go
Rust
Perl
Scala
Haskell
R
MATLAB
VBA
Objective-C
Dart
Lua
Elixir
Julia
CoffeeScript
Crystal
Groovy
Clojure
TypeScript
PowerShell
Shell Scripting
git
visual-studio-code
How to compare different branches in Visual Studio Code
How do I compare two different branches in Visual Studio Code?
Is it possible?
Solution
2021 answer
Here is the step by step guide:
Install the
GitLens
extension:
GitLens
Then, Click on
Source Control
:
Click on
Search & Compare
Click on
Compare References
Select the branches you want to compare:
Now, You can select any file for which you want to see the diff from Search & Compare
Failed to connect to bitbucket.org port 443: Network is unreachable
Where does Git store remote tracking branches
IntelliJ: Viewing diff of all changed files between local and a git commit/branch
Getting "fatal: bad revision" when trying to unsquash a commit in Git
How to disable git pull.rebase (rebasing by default upon pull)
File names only using Git grep
What is the difference between git fetch and git fetch origin?
How do I remove a submodule?
error: failed to solve: failed commit on ref : unexpected status: 400 Bad Request
Viewing full version tree in git
How does git LFS track and store binary data more efficiently than git?
How to prune local tracking branches that do not exist on remote anymore?
jitpack.io failed to resolve github repo
remote: Permission to repository denied. URL returned error: 403
How to change current branch in git from master to main
Which git environment variables (AUTHOR, COMMITTER) must be set so it represents the same config as `user.name` and `user.email`?
How to git pull for multiple repos on windows?
Git: Compare All Local Commits to Remote Repo Version
How to prevent git asking me to commit submodule modifications
How to list unpushed Git commits (local but not on origin)
Can you easily spread Git remote url changes to all developers?
Find which commit is currently checked out in Git
Finding what checkin broke a unit test
How can I perform a Git bisect if I don't know which old commit is good?
Why did my Git repo enter a detached HEAD state?
How do you reset the stored credentials in 'git credential-osxkeychain'?
How can I Git bisect where a bad commit is an ancestor of a good commit / find the fix commit?
How can I find the commit in which a given file was added?
bisect everything, from initial commit
How can I find out what commit(s) Git bisect would try next?