Skip to content

Sublime Text 4/3/2 plugin that adds the option to diff the current tab with another open tab.

License

Notifications You must be signed in to change notification settings

soandrew/DiffTabs

Repository files navigation

DiffTabs

Sublime Text 4/3/2 plugin that adds the option to diff the current tab with another open tab.

Usage

usage-1

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.

Keyboard Support

usage-2

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).

Configuration

  • 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

Installation

Package Control:

  1. Install Package Control if necessary.
  2. Open the Command Palette by pressing +Shift+P on Mac or Ctrl+Shift+P on Linux/Windows.
  3. Type in Package Control: Install Package and press Enter
  4. 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
  • ST3/ST4:
    • OS X: ~/Library/Application Support/Sublime Text 3/Packages
    • Linux: ~/.config/sublime-text-3/Packages
    • Windows: %APPDATA%\Sublime Text 3\Packages