Atom сравнение двух файлов

Обновлено: 05.07.2024

Compares two files and shows the diff

Install the module with: apm install compare-files

  1. Click on the two files that are to be compared in the tree view
  2. Invoke the command using any of the below:
  3. From Command Palette ( ⌘ + ⌂ + P ) invoke Compare Files: Compare
  4. Right click on one of the selected files and choose Compare Files
  5. Use the keyboard shortcut - ⌘ + ctrl + C (Windows and Linux: ctrl + alt + C )

Copyright (c) 2014 floydpink. Licensed under the MIT license.

Packages 0

1 Answer 1

You need to use a package. I use split-diff which compares files in tow panes side by side. You need to open each file in a custom pane and then invoke command split-diff:toggle. See package documentation for more info.

Or you may use compare-files package showing a diff of two files


compare-files stopped working, split-diff is the way to go!

Related

Hot Network Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Great things happen when developers work together—from teaching and sharing knowledge to building better software. Teletype for Atom makes collaborating on code just as easy as it is to code alone, right from your editor.


Share your workspace and edit code together in real time. To start collaborating, open Teletype in Atom and install the package.

GitHub for Atom

A text editor is at the core of a developer’s toolbox, but it doesn't usually work alone. Work with Git and GitHub directly from Atom with the GitHub package.


Create new branches, stage and commit, push and pull, resolve merge conflicts, view pull requests and more—all from within your editor. The GitHub package is already bundled with Atom, so you're ready to go!

Everything you would expect

Cross-platform editing

Atom works across operating systems. Use it on OS X, Windows, or Linux.

Built-in package manager

Search for and install new packages or create your own right from Atom.

Smart autocompletion

Atom helps you write code faster with a smart and flexible autocomplete.

File system browser

Easily browse and open a single file, a whole project, or multiple projects in one window.

Multiple panes

Split your Atom interface into multiple panes to compare and edit code across files.

Find and replace

Find, preview, and replace text as you type in a file or across all your projects.

Make it your editor

Packages

Choose from thousands of open source packages that add new features and functionality to Atom, or build a package from scratch and publish it for everyone else to use.

Themes

Atom comes pre-installed with four UI and eight syntax themes in both dark and light colors. Can't find what you're looking for? Install themes created by the Atom community or create your own.

Customization

It's easy to customize and style Atom. Tweak the look and feel of your UI with CSS/Less, and add major features with HTML and JavaScript.

Under the hood

Atom is a desktop application built with HTML, JavaScript, CSS, and Node.js integration. It runs on Electron, a framework for building cross platform apps using web technologies.

Open source

Atom is open source. Be part of the Atom community or help improve your favorite text editor.

Хотите улучшить этот вопрос? Обновите вопрос так, чтобы он вписывался в тематику Stack Overflow на русском.

Закрыт 5 лет назад .

Какие есть программы для быстрого сравнения двух файлов JavaScript, HTML, CSS, аналогично VCS-системам? То есть, передаёшь два файла, а программа показывает, чем они отличаются, и в каких строках. Но для любых локальных файлов, без какой-то централизованной системы и установки.


4,188 13 13 золотых знаков 35 35 серебряных знаков 89 89 бронзовых знаков 6,169 5 5 золотых знаков 36 36 серебряных знаков 73 73 бронзовых знака Быстрее и удобнее сразу сравнивать файлы в том же текстовом редакторе/IDE, которым Вы пользуетесь, без установки дополнительных программ. В Sublime Text 3 мне пока не доводилось наблюдать сбоев в работе служащего для этой цели плагина SublimeFileDiffs. Спасибо.
  • Когда просите посоветовать программу, всегда указывайте свою операционную систему.
  • Здесь подобные вопросы закрываются, специально для них служит сайт Software Reccomendations.

Быстрее и удобнее не открывать лишний раз сторонние программы, а когда всё и сразу совершается в одном редакторе/IDE.

Languages

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

It compares my file to the latest version checked into git. How do I compare two files?

7,381 12 12 gold badges 48 48 silver badges 84 84 bronze badges

About

Compares two files and show the diff in the atom editor

Resources

Решения для Sublime Text 3

Быстрое

Плагин FileDiffs, документация там же, по ссылке.

Пример работы плагина FileDiffs

Выделяются сами различия между файлами и приводятся номера строк — лично мне этого вполне хватает.

Продвинутое

Плагин Sublimerge 3, инструкция по установке в конце страницы. Он Freemium, но если не желаете отдавать деньги, придётся только иногда (достаточно нечасто) терпеть всплывающее окно с предложением его купить. Пример работы:

Sublimerge

Из преимуществ отметил бы возможность интеграции с системами контроля версий SVN, Git и Mercurial (Bazaar пока не поддерживается). Например, чтобы сравнить файл в локальном хранилище с любой из его версий на удалённом репозитории, необходимо кликнуть где-нибудь в тексте этого файла правой кнопкой мыши, в появляющемся контекстном меню Sublimerge → Compare to revision. → выбираем требуемую версию для сравнения.

Contributors 6

Releases

Used by 1

Читайте также: