A code editor is the place where programmers spend most of their time.
There are two main types of code editors: IDEs and lightweight editors. Many people use one tool of each type.
IDE
The term IDE (Integrated Development Environment) refers to a powerful editor with many features that usually operates on a âwhole project.â As the name suggests, itâs not just an editor, but a full-scale âdevelopment environment.â
An IDE loads the project (which can be many files), allows navigation between files, provides autocompletion based on the whole project (not just the open file), and integrates with a version management system (like git), a testing environment, and other âproject-levelâ stuff.
If you havenât selected an IDE yet, consider the following options:
- Visual Studio Code (cross-platform, free).
- WebStorm (cross-platform, paid).
For Windows, thereâs also âVisual Studioâ, not to be confused with âVisual Studio Codeâ. âVisual Studioâ is a paid and mighty Windows-only editor, well-suited for the .NET platform. Itâs also good at JavaScript. Thereâs also a free version Visual Studio Community.
Many 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
âLightweight editorsâ are not as powerful as IDEs, but theyâre fast, elegant and simple.
They are mainly used to open and edit a file instantly.
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.
There are many options, for instance:
- Sublime Text (cross-platform, shareware).
- Notepad++ (Windows, free).
- Vim and Emacs are also cool if you know how to use them.
Letâs not argue
The editors in the lists above are those that either I or my friends whom 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, and personal preferences.
The authorâs personal opinion:
- Iâd use Visual Studio Code if I develop mostly frontend.
- Otherwise, if itâs mostly another language/platform and partially frontend, then consider other editors, such as XCode (Mac), Visual Studio (Windows) or Jetbrains family (Webstorm, PHPStorm, RubyMine etc, depending on the language).
Comments
<code>tag, for several lines â wrap them in<pre>tag, for more than 10 lines â use a sandbox (plnkr, jsbin, codepenâ¦)