比较 Sublime Text 中两个文件的内容,并排视图 [英] Comparing the contents of two files in Sublime Text, with a side by side view
本文介绍了比较 Sublime Text 中两个文件的内容,并排视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经阅读了
如何在 Sublime Text(2 或 3)中实现两个打开的文件之间的这种并排比较?
Sublime Text 本身是否可行?
解决方案
Windows 和 Linux 安装:
- 按
CTRL
+SHIFT
+P
- 输入
包控制:安装包
- 按
ENTER
- 输入
Compare Side
- 选择名为
Compare Side-By-Side
如何使用?
- 选择您要比较的一个标签
- 要比较的第二个选项卡上的鼠标右键
- 选择
与活动标签比较
它看起来如何?
I have already read Comparing the contents of two files in Sublime Text but the answers (either the native "Folders > Diff files" feature, or using FileDiffs
) show the differences between 2 files like with the diff
tool, which I don't want:
--- file1.py
+++ file2.py
@@ -1,21 +1,19 @@
-import os
+import os, sys
import numpy as np
-print('hello')
+print('hello world')
-import sys
Instead, I would like a side-by-side comparison like this with PSPad native diff tool:
How to achieve this side-by-side comparison between two opened files in Sublime Text (2 or 3)?
Is it possible natively with Sublime Text?
解决方案
Installation for Windows and Linux:
- Press
CTRL
+SHIFT
+P
- Type
Package Control: Install Package
- Press
ENTER
- Type
Compare Side
- Select package named
Compare Side-By-Side
How to use?
- Select one tab which you want to compare
- Right Mouse Button on second tab which you want to compare
- Select
Compare with active tab
How it looks?
这篇关于比较 Sublime Text 中两个文件的内容,并排视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文