Github发布了与Sublime非常相似的Atom。甚至一些键盘快捷键,如⌘+ P,⌘+ Shift + P等也是一样的。

Atom和Sublime有什么不同? 它是否包含诸如构建工具、函数定义跳转、文档等IDE特性? 有没有使用Sublime的人收到测试邀请,指出它们之间的区别? 我可以使用Sublime的主题、方案和包吗?就像Sublime可以使用文本伴侣一样。

1

PS:在新标签中打开图像以获得更大的分辨率。


当前回答

How is Atom different from Sublime? Atom is an open source text editor/IDE, built on JavaScript/HTML/CSS. Sublime Text is a commercial product, built on C/C++ and Python. Comparable to Atom is Adobe Brackets, another open source text editor/IDE built on JavaScript/HTML/CSS. Be minded that this makes Brackets more oriented towards Web development, specially in the front end. Advantages of open source projects are faster rate of development and, of course, price. Does it include IDE features like build tools, function definition jumps, documentations, etc.? The short answer is yes, yes, and yes. The app is completely modular. Open source will give people the freedom to fill the gaps on several of these features. Has anyone using Sublime got a Beta invitation to point out the differences? Advantages of Atom is entry-level hackability, since it's built on the same code that powers Web sites. Advantages of Sublime Text is performance, as it doesn't need to run on top of Node.js, and it's a more mature product, about to reach a stable version 3. There are a long list of minor differences that can be included in the comments (I wish this markdown could be able to draw a table for comparisons, but that's another issue). Because of Atom's rapid turnout, I am afraid some of differences I list here will become outdated over time. Per example, at the time of this writing, Atom is only available on the Macintosh while Sublime Text is already multiplatform. Can I use the themes, schemes and packages from Sublime as is, like Sublime could do with text mate. The short answer is no, but because of Atom's hackability, it will be easy to retool packages from other editors to Atom.

其他回答

Atom是使用Node.js, CoffeeScript和LESS编写的。然后它被包装在WebKit包装器中,该包装器最初只适用于OSX,尽管现在也有Windows版本可用。(Linux版本必须从源代码构建,但Ubuntu用户有一个PPA。)

很多架构和功能都复制自Sublime Text,因为它们都经过了尝试和测试。插件系统的工作原理几乎是一样的,但是通过公开新的api也打开了许多新特性和潜力。

我相信,由于肌肉记忆,快捷键基本上保持不变——人们会记住它们,并能够立即点击Atom。

首选项可以通过GUI来控制,而不是直接编辑JSON,这可能会降低人们开始使用Atom的入门门槛。我自己发现很难导航所有这些,因为在首选项中没有搜索功能。

你可以在##atom- invitation IRC频道上注册一个邀请,或者注册到他们的网站并添加你的电子邮件。第一轮邀请很快就来了。

注意::

在Atom中,由于缓存系统的缺陷,在使用大文件时经常会发生数据丢失。

它已经被证明了无数次。

另一个区别是Sublime文本是一个闭源项目,而Atom源代码是/将是公开可用的——尽管Github不打算将其作为一个真正的开源项目发布。他们想要提供对代码的访问权限,而不是向贡献者开放代码。

Github公开了代码:http://blog.atom.io/2014/05/06/atom-is-now-open-source.html

我在一个极端的环境下工作;编辑远程文件系统上的文件(外部网络,当然),是安装在我的笔记本电脑通过ssh(aka。sshfs)。不管我为什么要这样做,尽管它的响应很麻烦,但当我使用Sublime Text 2时,它是相当可以接受的。

读了这篇文章后,我尝试了Atom,但结果对我来说有点痛苦;Atom似乎不能有效地缓存目录结构。每当我在树视图中展开一个文件夹时,UI会冻结一小段时间,2~3秒,可能是获取文件系统信息。是的,这是因为我正在使用远程文件系统。但是Sublime的处理效率更高,至少它不会在我每次展开文件夹时冻结,所以不那么痛苦。

我认为免费的Atom非常棒,我的故事很琐碎,有一天可能会被增强,但在这个时候它会对某些人有所帮助。

--

2014年8月26日添加

Recently, I changed my laptop from Macbook Air 2010 late to Macbook Pro 13" 2013 late. It has likely 4 times faster CPU and much enhancements in performance. I want to mention my opinion is about in the case WHEN YOU MOUNT REMOTE FILE SYSTEM. (using OS X Mavericks, most recent version of Atom, FUSE 2.7.3 / OSXFUSE 2.6.4 / sshfs 2.5.0, and remote system is Ubuntu server) Eventually, UI freeze gets pretty shorter, but it is still there. Specifically, to open a folder with many folder/files in it and index it is requires certain amount of time. Also, if you expand a folder full of files, it just falters. (when collapsing the folder, it doesn't)

根据@EliDuenisch的说法,这似乎不会发生在Linux Mint上。我不确定,但可能是因为操作系统之间的差异。当然,如果您在本地文件系统上工作,则完全不必关心这个问题。

Atom是开源的(到现在已经有几个小时了),而Sublime Text不是。