Comparing .java and .class extension files, having same filename

Answered

Hello Team,

My request is to compare two files from two different folders with same file name and one with .java and the other with .class extension.

I know decompiled class removes the comments, but is it possible to compare both .class and .java with same fileName using IntelliJ Idea ??

-Gopi.

 

1
2 comments

There is the Compare with... action in the context menu of a file, opened from the Project tree. This action opens a file browser that allows selecting any file present on disk.

So you could invoke this action on a file in one project, and then select the file in another project in the browser that opens.

1

My bad.. Thank you Dmitriy :)

0

Please sign in to leave a comment.