Merge pull request #23706 from wxy/20211017-Visual-Studio-Code-or-Atom--Which-Code-Editor-Should-You-Use

TSL&PRF:sources/tech/20211017 Visual Studio Code or Atom- Which Code Editor Should You Use.md
This commit is contained in:
Xingyu.Wang 2021-11-01 23:20:48 +08:00 committed by GitHub
commit a1853aef3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 101 additions and 103 deletions

View File

@ -1,103 +0,0 @@
[#]: subject: "Visual Studio Code or Atom? Which Code Editor Should You Use?"
[#]: via: "https://itsfoss.com/visual-studio-code-vs-atom/"
[#]: author: "Pratham Patel https://itsfoss.com/author/pratham/"
[#]: collector: "lujun9972"
[#]: translator: "wxy"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
Visual Studio Code or Atom? Which Code Editor Should You Use?
======
Finding a [good open source code editor][1] is not hard these days, choosing one can be.
Microsofts [Visual Studio Code][2] and GitHubs [Atom][3] are two of the most popular, feature-rich, IDE-like code editors that have a huge user base and fan following.
Both VS Code and Atom belong to Microsoft now because Atoms original developer GitHub is now owned by Microsoft. They have an interesting, modern UI with a pretty looking native dark theme. Both editors use [Electron][4] for the user interface.
The similarities are plenty and this is why it is easy to get confused between choosing one of them for your coding set up.
If you cannot make up your mind and want to compare and choose between one VS Code and Atom, this article should help you decide for yourself.
### Visual Studio Code
![Visual Studio Codes User Interface with a busy project interface][5]
[Visual Studio Code][2] (A.K.A. VS Code) is one of the modern open source code editors. Its user-base explode because of its IDE-like features but still remaining relatively light on resources.
Visual Studio Code was made by Microsoft and is available on Linux, macOS and Windows. Microsoft released _most_ of the source code of Visual Studio Code on [GitHub][6] under the MIT License on 18th November 2015.
VS Code developers have done some fantastic optimizations with Electron to make it as lightweight and efficient as possible. And since Electron apps work on a majority of operating systems, users of Linux, macOS and Windows can all benefit from these optimizations.
[Installing VS Code on Linux][7] is pretty simple too. It is in fact available in the software center of many distributions.
#### Why you should opt for Visual Studio Code
* Visual Studio Code is [generally] chosen by folks who want a near-IDE functionality from the start and do not want to fiddle with their code editor.
* Visual Studio Code, even though based on Electron, has very little overhead compared to other Electron apps (GitHubs Atom).
* More out-of-the-box functionality like Microsofts IntelliSense auto-complete, Git integration, Markdown support.
* Plug-ins can only add features, themes and add support for new languages; and this plug-in constraint ensures the editors core stays familiar even after adding new plug-ins.
The binary releases [distributed by Microsoft][8] are still proprietary freeware. [VSCodium][9] builds upon the publicly open source code of Visual Studio Code. However, the discussion on VSCodium is beyond the scope of this article, except for considering it as a viable alternative to Visual Studio Code if you want the functionality Visual Studio Code offers, but without any proprietary elements to it.
### Atom
![User Interface of the Atom editor][10]
[GitHubs Atom][3] is another free and open source code editor available for Linux, macOS and Windows. Atom is a desktop application made with Electron for easy package development using JavaScript.
Atoms source code was released under the MIT License [on GitHub][11]. Since Atom is a GitHub product, it has Git Control embedded in it.
Atom is dubbed as the “hackable text editor for the 21st Century” because of it complete customizability using HTML, CSS and JS.
Like VS Code, you can easily [install Atom on Linux][12] and other platforms.
#### Reasons to choose Atom
* Atom is preferred by people who want a bare-bones editor and want to build upon it because of Atoms hackable nature.
* In-built Git and complete GitHub integration; not surprising considering it is developed by GitHub
* [Atoms plug-ins][13] are very easy to search, install and upgrade, from the app itself.
* Plug-ins available for Atom are very extensible, and can end up completely changing the editors functionality and end up creating almost a new editor; It truly is “hackable”.
* Atoms binary releases and its source code are fully open source (unlike Visual Studio Codes binary releases containing proprietary parts + telemetry).
* You can [turn Atom from a code editor to IDE][14] with smarter context-aware auto-completion, code navigation features, document formatting and more.
### Conclusion
Both Atom and VS Code are built on Electron. But Microsoft has done more optimization on VS Code to make it as lightweight as possible.
At this point, VS Code is like Ubuntu, ships with almost everything out of the box. While Atom is like Arch, minimal and extremely hackable (extendable).
Both, Atom and VS Code technically are under Microsoft and eventually will reach feature parity. Hence, it is best to go with the editor your community (Web dev/Soft dev) leans towards and pave the path ahead. Maybe you end up with Vim!
--------------------------------------------------------------------------------
via: https://itsfoss.com/visual-studio-code-vs-atom/
作者:[Pratham Patel][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/pratham/
[b]: https://github.com/lujun9972
[1]: https://itsfoss.com/best-modern-open-source-code-editors-for-linux/
[2]: https://code.visualstudio.com/
[3]: https://atom.io/
[4]: https://www.electronjs.org/
[5]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/10/04_visual_studio_code.png?resize=800%2C544&ssl=1
[6]: https://github.com/microsoft/vscode
[7]: https://itsfoss.com/install-visual-studio-code-ubuntu/
[8]: https://code.visualstudio.com/Download
[9]: https://vscodium.com/
[10]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/10/05_atom.png?resize=800%2C527&ssl=1
[11]: https://github.com/atom/atom
[12]: https://itsfoss.com/install-atom-ubuntu/
[13]: https://itsfoss.com/install-packages-in-atom/
[14]: https://ide.atom.io/

View File

@ -0,0 +1,101 @@
[#]: subject: "Visual Studio Code or Atom? Which Code Editor Should You Use?"
[#]: via: "https://itsfoss.com/visual-studio-code-vs-atom/"
[#]: author: "Pratham Patel https://itsfoss.com/author/pratham/"
[#]: collector: "lujun9972"
[#]: translator: "wxy"
[#]: reviewer: "wxy"
[#]: publisher: " "
[#]: url: " "
VS Code 还是 Atom你应该选择哪个
======
![](https://img.linux.net.cn/data/attachment/album/202111/01/231806jk4mky6gjmrw4mgm.png)
如今,找到一个 [好的开源代码编辑器][1] 并不难,随便选择一个就可以了。
微软的 [VS Code][2] 和 GitHub 的 [Atom][3] 是两个最流行的、功能丰富的、类似于 IDE 的代码编辑器,都拥有庞大的用户群和粉丝。
VS Code 和 Atom 现在都属于微软,因为 Atom 的原开发者 GitHub 现在属于微软。这两个都有一个有吸引力的、现代的 UI有一个漂亮的原生黑暗主题。两个编辑器都使用 [Electron][4] 作为用户界面。
相似的地方很多,这就是为什么你很容易在它们中间选择时感到迷惑。
如果你不能下定决心,想在 VS Code 和 Atom 之间进行一番比较和选择,这篇文章应该可以帮助你。
### VS Code
![VS Code 的用户界面与拥挤的项目界面][5]
[VS Code][2] 是开源的现代编辑器之一。它的用户群爆炸性地增长,因为它具有类似 IDE 的功能,但仍然保持相对较轻的资源占用。
VS Code 是由微软制作的,可用于 Linux、macOS 和 Windows。微软于 2015 年 11 月 18 日在 [GitHub][6] 上根据 MIT 许可发布了 VS Code 的 _大部分_ 源代码。
VS Code 的开发者对 Electron 进行了一些奇妙的优化,使其尽可能的轻量级和高效。由于 Electron 应用程序可以在大多数操作系统上运行Linux、macOS 和 Windows 的用户都可以从这些优化中受益。
[在 Linux 上安装 VS Code][7] 也相当简单。事实上,它在许多发行版的软件中心都有。
#### 为什么你应该选择 VS Code
* 那些从一开始就想获得接近 IDE 的功能,而又不想摆弄他们的代码编辑器的人,[通常] 会选择 VS Code 。
* 即使是基于 ElectronVS Code 与其他 Electron 应用(如 GitHub 的 Atom相比开销也非常小。
* 更多开箱即用的功能,如微软的 IntelliSense 自动补完、Git 集成、Markdown 支持等等。
* 插件可以只用来增加功能、主题和支持新的语言;而这种插件约束确保编辑器的核心在增加新插件后仍保持熟悉。
[由微软分发的][8] 二进制版本仍然是专有的免费软件。[VSCodium][9] 建立在 VS Code 的公开源代码之上。然而,关于 VSCodium 的讨论超出了本文的范围,如果你想获得 VS Code 提供的功能,而又没有任何专有元素的话,可以考虑将其作为 VS Code 的一个可行的替代品。
## Atom
![Atom 编辑器的用户界面][10]
[GitHub 的 Atom][3] 是另一个自由开源的代码编辑器,可用于 Linux、macOS 和 Windows。Atom 是一个使用 JavaScript 通过 Electron 制作的桌面应用程序,用于轻松开发软件包。
Atom 的源代码是根据 MIT 许可发布 [在 GitHub 上][11] 的。由于 Atom 是 GitHub 的产品,因此它嵌入了 Git Control。
Atom 被称为“<ruby>可魔改的<rt>hackable</rt></ruby> 21 世纪文本编辑器”,因为它可以使用 HTML、CSS 和 JS 完全定制。
像 VS Code 一样,你可以轻松地在其他平台和 [Linux 上安装 Atom][12] 。
#### 选择 Atom 的理由
* Atom 是那些想要一个基础的编辑器,并希望在其上进行开发的人的首选,因为 Atom 的可魔改性质。
* 内置了 Git 和完整的 GitHub 集成;考虑到它是由 GitHub 开发的,这并不令人惊讶。
* 从应用程序中非常容易搜索、安装和升级 [Atom 的插件][13]。
* 可用的 Atom 插件是非常可扩展的,甚至可以完全改变编辑器的功能,并最终创造出几乎一个新的编辑器;它确实是“可魔改”的。
* Atom 的二进制版本和它的源代码是完全开源的(不像 VS Code 的二进制版本包含专有部分+遥测)。
* 你可以 [把 Atom 从一个代码编辑器变成 IDE][14],有更智能的上下文自动完成、代码导航功能、文档格式化等。
### 总结
Atom 和 VS Code 都是建立在 Electron 之上的。但是微软在 VS Code 上做了更多的优化,使其尽可能的轻量化。
在这一点上VS Code 就像 Ubuntu几乎所有的东西都开箱即用。而 Atom 就像 Arch精简而极易魔改可扩展
Atom 和 VS Code 在技术上都隶属于微软,最终它们会殊途同归。因此,最好是使用你的社区(网页开发/软件开发)所倾向的编辑器,并铺平前进的道路。也许你最终会选择 Vim
--------------------------------------------------------------------------------
via: https://itsfoss.com/visual-studio-code-vs-atom/
作者:[Pratham Patel][a]
选题:[lujun9972][b]
译者:[wxy](https://github.com/wxy)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/pratham/
[b]: https://github.com/lujun9972
[1]: https://itsfoss.com/best-modern-open-source-code-editors-for-linux/
[2]: https://code.visualstudio.com/
[3]: https://atom.io/
[4]: https://www.electronjs.org/
[5]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/10/04_visual_studio_code.png?resize=800%2C544&ssl=1
[6]: https://github.com/microsoft/vscode
[7]: https://itsfoss.com/install-visual-studio-code-ubuntu/
[8]: https://code.visualstudio.com/Download
[9]: https://vscodium.com/
[10]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/10/05_atom.png?resize=800%2C527&ssl=1
[11]: https://github.com/atom/atom
[12]: https://itsfoss.com/install-atom-ubuntu/
[13]: https://itsfoss.com/install-packages-in-atom/
[14]: https://ide.atom.io/