TranslateProject/sources/tech/20211017 Visual Studio Code or Atom- Which Code Editor Should You Use.md
DarkSun a1353748cf 选题[tech]: 20211017 Visual Studio Code or Atom? Which Code Editor Should You Use?
sources/tech/20211017 Visual Studio Code or Atom- Which Code Editor Should You Use.md
2021-10-17 05:02:27 +08:00

6.2 KiB
Raw Blame History

Visual Studio Code or Atom? Which Code Editor Should You Use?

Finding a good open source code editor is not hard these days, choosing one can be.

Microsofts Visual Studio Code and GitHubs Atom 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 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 Code’s User Interface with a busy project interface

Visual Studio Code (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 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 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 are still proprietary freeware. VSCodium 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

GitHubs Atom 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. 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 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 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 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 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出