Sublime Text 4/3/2 plugin that adds the option to diff the current tab with another open tab.
Right click another tab along the tab bar and select "DiffTabs: Diff With Current Tab…" (The tab you right click will be the from-file and the current tab will be the to-file). Your diff results will appear in a new tab.
Open the Command Palette by pressing ⌘+Shift+P on Mac or Ctrl+Shift+P on Linux/Windows.
Type in DiffTabs: Diff With Current Tab…
and press Enter.
In the dropdown select another tab (The tab you select will be the from-file and the current tab will be the to-file).
- ST2:
- Preferences > Package Settings > DiffTabs > Settings - User
- ST3/ST4:
- Preferences > Package Settings > DiffTabs > Settings
Key | Possible values | Default value | Description |
---|---|---|---|
"output_to" |
"buffer" | "panel" |
"buffer" |
Where to display diff output to buffer: diff results will display in a new tab panel: diff results will display in bottom panel |
Package Control:
- Install Package Control if necessary.
- Open the Command Palette by pressing ⌘+Shift+P on Mac or Ctrl+Shift+P on Linux/Windows.
- Type in
Package Control: Install Package
and press Enter - Type
DiffTabs
and hit Enter
Without Git: Download the latest source from GitHub and extract archive to your Sublime Text "Packages" directory.
With Git: Clone the repository to your Sublime Text "Packages" directory:
git clone https://github.com/soandrew/DiffTabs.git
The "Packages" directory is located at:
- ST2:
- OS X:
~/Library/Application Support/Sublime Text 2/Packages
- Linux:
~/.config/sublime-text-2/Packages
- Windows:
%APPDATA%\Sublime Text 2\Packages
- OS X:
- ST3/ST4:
- OS X:
~/Library/Application Support/Sublime Text 3/Packages
- Linux:
~/.config/sublime-text-3/Packages
- Windows:
%APPDATA%\Sublime Text 3\Packages
- OS X: