A code editor is the place where programmers spend most of their time.
There are two archetypes: IDE and lightweight editors. Many people feel comfortable choosing one tool of each type.
The term IDE (Integrated Development Environment) means a powerful editor with many features that usually operates on a “whole project”. As the name suggests, that’s not just an editor, but a full-scale “development environment”.
An IDE loads the project (can be many files), allows navigation between files, provides autocompletion based on the whole project (not just the open file), integrates with a version management system (like git), a testing environment and other “project-level” stuff.
If you haven’t considered selecting an IDE yet, look at the following variants:
- WebStorm for frontend development and other editors of the same company if you need additional languages.
- Visual Studio is fine if you’re a .NET developer, and a free version is available (Visual Studio Community)
All of the IDEs except Visual Studio are available on Windows, MacOs and Linux. Visual Studio doesn’t work on Linux.
Most IDEs are paid, but have a trial period. Their cost is usually negligible compared to a qualified developer’s salary, so just choose the best one for you.
“Lightweight editors” are not as powerful as IDEs, but they’re fast, elegant and simple.
They are mainly used to instantly open and edit a file.
The main difference between a “lightweight editor” and an “IDE” is that an IDE works on a project-level, so it loads much more data on start, analyzes the project structure if needed and so on. A lightweight editor is much faster if we need only one file.
In practice, lightweight editors may have a lot of plugins including directory-level syntax analyzers and autocompleters, so there’s no strict border between a lightweight editor and an IDE.
The following options deserve your attention:
- Visual Studio Code (cross-platform, free).
- Atom (cross-platform, free).
- Sublime Text (cross-platform, shareware).
- Notepad++ (Windows, free).
- Vim and Emacs are also cool, if you know how to use them.
The personal preference of the author is to have both an IDE for projects and a lightweight editor for quick and easy file editing.
- WebStorm for JS, and if there is one more language in the project, then I switch to one of the other Jetbrains offerings listed above.
- As a lightweight editor – Sublime Text or Atom.
The editors in the lists above are those that either I or my friends who I consider good developers have been using for a long time and are happy with.
There are other great editors in our big world. Please choose the one you like the most.
The choice of an editor, like any other tool, is individual and depends on your projects, habits, personal preferences.