Using IntelliJ to diff two arbitrary files

后端 未结 10 1492
感动是毒
感动是毒 2020-12-24 11:42

I\'m really liking the IntelliJ diff tool. I\'m wondering if it is possible to use this tool to diff two arbitrary files. I.e. files NOT in an IntelliJ project. Just pick tw

10条回答
  •  孤城傲影
    2020-12-24 12:03

    Yes you can (of course, if we are talking about text files). But probably you will need to create some project (just for opening there files).

    Then your steps will be:

    1) Add to created project file#1 and file#2.

    2) Open file#1 in editor

    3) Right click mouse in left menu (project files browser) on file#2 and find menu-item Compare File with Editor.

    enter image description here

    That's all. After p.3) a comparison windows will be opened.

提交回复
热议问题