It’s likely to be it built in soon but for the moment Mads Kristensen has created the File Differ extension which allows devs to compare two local files directly in Visual Studio.
The extension allows us to easily see diffs between two files …

If you want this feature to make it into Visual Studio proper please vote for it -> Is there a way to compare two files from solution explorer? – Visual Studio Feedback