eviltester / blogcomments

1 stars 0 forks source link

2017/10/intellij-compare-java-diff-tool #27

Open utterances-bot opened 5 years ago

utterances-bot commented 5 years ago

How to Diff Java Code in IntelliJ - 3 ways to use the Compare Tool - EvilTester.com

TL;DR IntelliJ has an inbuilt diff tool which you can use to compare files, classes or code with the clipboard. Just right click and choose Compare.

I was busy refactoring code in RestMud this morning because I want to try and open source the basic game engine, and then later the Web/REST API, but I want to tidy up the code a little first.

I’ve been working through the code:

moving classes into new packages splitting classes to make code clearer and easier to manage new classes make code easier to test

And the more I tidy it up in general, the easier it is to spot smaller problems of code duplication.

https://www.eviltester.com/2017/10/intellij-compare-java-diff-tool.html

andreasneuman commented 5 years ago

Recently I found great file compare tool. It is Code Compare https://www.devart.com/codecompare/file-comparison.html This file comparison tool that allows you to compare, diff and merge text files or folders. It can recognize basic code structure in various languages (namely C#, C++, JavaScript, Java, Visual Basic). Very comfortable!

eviltester commented 5 years ago

Thanks. The commercial diff tool I normally use is Beyond Compare https://www.scootersoftware.com/ and if I want an open source diff then I've used WinMerge before.