Comparing the contents of two files in Sublime Text

前端 未结 10 1937
被撕碎了的回忆
被撕碎了的回忆 2021-01-29 17:27

I have two cloned repositories of two very similar open-source projects, which I have been working on in different instances in Sublime Text 2 to arrive at my desired result. Co

10条回答
  •  [愿得一人]
    2021-01-29 17:44

    UPDATE
    (Given the upvotes, I feel there is a need for a complete step-by-step explanation...)

    1. In the Menu bar click on File->Open Folder...
    2. Select a folder (the actual folder does not really matter, this step is just to make the FOLDERS sidebar available)
    3. If there is no Side Bar shown yet, make it appear via View -> Side Bar -> Show Side Bar
    4. Use this FOLDERS-titled Side Bar to navigate to the first file you want to compare.
    5. Select it (click on it), hold down ctrl and select the second file.
    6. Having two files selected, right click on one of the two and select Diff Files...

    There should be a new Tab now showing the comparison.


    Original short answer:
    Note that:

    The "Diff files" only appears with the "folders" sidebar (to open a folder: File->Open Folder) , not with "open files" sidebar.

提交回复
热议问题