Best text editors linux

12 Best Linux Text Editors For Programming In 2021

While the debate of the best text editor for Linux won’t end anytime soon, there are many editors that bring an impressive set of features and offer a great user experience to developers in 2021. While Vim, Emacs, and Nano are older and dependable players in the game, Atom, Brackets, and Sublime Text are relatively newer text editors.

Without further delay, let’s start our list of the most impressive, feature-rich, and useful source code editors for Linux. In my mini-reviews, I’ve also added their installation commands and website link for further information.

12 Best Text Editors For Linux Distros

1. Sublime Text

Sublime Text is a feature-packed text editor built for “code, markup, and prose.” It natively supports tons of programming languages and markup languages. Using plugins that are maintained under free software licenses, one can extend its functionality.

“Goto Anything” is a popular feature of the Sublime Text that lets you quickly navigate files, lines, or symbols. The other main features of Sublime Text are command palette, Python-based plugin API, simultaneous editing, project-specific preferences, etc.

The interested users can find download links and further details about Sublime text on its website.

Installing Sublime Text

The installation processes for other Linux distributions are mentioned on the official Sublime website.

2. Atom

Atom is a free and open-source text editor that’s developed by GitHub. Based on Electron (CoffeeScript, JS, Less, HTML), it’s a desktop application built using web technologies. Often being called the text editor of the 21st century, it’s a modern text editor that’s hackable to the core.

The major features of Atom are cross-platform editing, built-in package manager, file system browser, multiple pane support, find and replace function, and smart autocompletion. You can select from 1000s of open source packages and add new features to Atom. It’s also customizable to suit your needs and style.

Since Microsoft acquired GitHub, the pace of Atom’s development has slowed down (Probably because Microsoft owns Visual Studio Code). However, it’s still one of the best text editors for Linux out there.

Installing Atom

You can also download the .deb and .rpm files from the official Atom website

3. Vim

Vim, or Vi IMproved, is an advanced text editor that aims to deliver a more powerful performance and extend the capabilities of de-facto Unix editor ‘Vi.’ It’s a highly configurable text editor that’s built to serve the needs of a developer. That’s why it’s often called a ‘programmer’s editor.’

It’s designed to be used both as a command-line interface and as a standalone application in a GUI. While beginners complain that it’s tough to use, they also learn that it’s one of the most powerful text editors around. Its main highlights are automatic commands, digraph input, split-screen, session screen, tab expansion, syntax coloring, and tag system. Vim is written in C and Vim script.

Vim 8.2 is the latest stable version of this popular text editor for Linux. You can find more information and download it on Vim’s website.

Installing Vim

4. Gedit

Gedit comes loaded as the default text editor of the GNOME desktop environment. This general purpose text editor aims at simplicity and ease of use. Following the GNOME project philosophy, Gedit comes with a clean and straightforward GUI.

Written in the C programming language, Gedit witnessed its first public release in 2000. This open-source and free software features full support for the internationalized text. In Gedit, you get configurable syntax highlighting various programming languages like C++, C, HTML, Java, XML, Python, Perl, and others.

The latest version of Gedit arrives with GNOME 40. You can find the download links and further information about Gedit here.

Installing Gedit:

5. GNU Emacs

There’s a good chance that Emacs will be one of your favorite Linux text editors. It has been around for a long time. GNU Emacs, created by GNU Project founder Richard Stallman, is its most popular version that’s used by developers and Linux enthusiasts all across the world.

Written in Lisp and C programming language, this free software is extensible using a Turing complete programming language. The users of GNU Emacs also enjoy extensive documentation and tutorial support. There’s also the availability of extensions like debugger interface, mail, and news.

The latest release of this free/libre text editor is GNU Emacs 27.2. For more information, visit this link.

Installing Emacs

6. Visual Studio Code

Like the best Linux distributions for programmers, there are various options for Linux editors that one can use to get their daily jobs done. Despite being created by Microsoft, Visual Studio Code is completely open-source, and its source code can be accessed on GitHub. As of today, over 2.6 million users use it.

Featuring a modern look, VS Code delivers a powerful performance despite being lightweight. There’s a vast library of extensions that enable support for more languages, commands, debuggers, etc. This cross-platform tool (Linux, macOS, and Windows.) comes with out-of-the-box support for TypeScript, JavaScript, and Node.js.

VS Code installation command:

If you’re running CentOS, Fedora, or OpenSUSE, you can download the .rpm file from the official website.

7. nano

nano is a user-friendly text editor that’s widely used on Unix-like operating systems. nano, first released in June, 2000, emulates the Pico text editor and comes loaded with additional functionality. It runs in a familiar command line interface.

If you love spending days and nights playing with configuration files in a terminal, nano will fulfill your needs. Its major highlights include Autoconf support, case-sensitive search function, auto-indentation, interactive search and replacement, tab completion, soft text wrapping, etc. It’s written in the C programming language.

The latest release of this text editor is GNU nano 5.6.1.

Installing nano Text Editor

Head over to the official nano website to download the .deb, .rpm, and binaries.

8. KWrite

KWrite’s first public release was in 2000, and it has come a long way since then. It is a lightweight text editor developed by KDE and is based on the KATE text editor and the KDE KParts technology.

The major features of this popular text editor include word completion, auto-indentation, syntax, highlighting according to file type, Vi input mode, and support for plugins. Other exciting features of KWrite are extensibility, encoding support, remote file editing, etc. It’s written in C++.

Читайте также:  Adobe premiere crack windows

Installing KWrite

You can search for KWrite and install it if your distro has a software center. Here’s the KWrite listing on KDE Applications.

9. Brackets

Brackets is a popular text editor that was launched by Adobe back in 2014. This free text editor comes with Live Preview, Inline Editing, focused visual tools, Preprocessor support, and other exciting features. Created from the ground up, it’s developed for web designers and front-end developers. Despite being lightweight, this open-source text editor comes loaded with all qualities of a modern text editor. It’s written in HTML, CSS, and JavaScript.

However, Adobe will stop supporting Brackets on the 21st of September and is currently “encouraging” its users to switch to Visual Studio Code because of the Adobe – Microsoft partnership.

The latest release of this great text editor is Brackets 1.14.1.

Installing Brackets

10. JED

JED is a popular Linux text editor that uses the S-Lang library. This cross-platform tool is available for various other platforms, including Unix, VMS, OS/2, BeOS, Windows, OpenVMS, etc. In case you’re running DOS, you can run JED’s older versions. The major plus point of using the JED Linux editor is its lightweight nature that makes sure that you can use it with ease on hardware with limited resources.

The popular features of the JED editor are color syntax highlighting, code folding, emulation of editors like Emacs, different programming modes, editing TeX files, rectangular cut/paste, etc.

JED 0.99-19 is the latest version available for download. Check it out by visiting this link.

JED installation command:

11. Geany

Geany is a great text editor that integrates the GTK+ toolkit to deliver an excellent development environment. If you’re looking for a text editor that feels more like an IDE, Geany could be a great choice. This lightweight IDE supports all the main programming languages and has only a few dependencies from other packages.

The notable features of Geany are pluggable interface, syntax highlighting, line numbering, etc. It comes with a clean interface and plenty of customizable options. It’s written in C and C++.

The latest version of Geany text editor for Linux that’s available for download is Geany 1.37.1. Find more details and download the link here.

Geany installation command:

12. Notepadqq

The users of Notepad++ on Windows have desired to use the same in the form of an Ubuntu text editor or other Linux distro. However, the software isn’t available on the open-source platform. Notepadqq is a worthy open-source alternative that’s available on Linux. It’s worth noting that both projects don’t share any code; however, Notepadqq is surely inspired by Notepad++.

As a result, the Windows programmers who switch to Linux can get their hands on Notepadqq and get the popular software features on all the platforms. It’s now even available as a Snap for easy installation on Ubuntu and other Linux distributions supporting snap technology.

You can visit the official Notepadqq website to download and install it on your distribution.

How to install Notepadqq?

If you want to download Notepad++, you can download its snap.

So, these were some of the best text editors for Linux. Visual Studio Code and Atom are my favorite picks in GUI-based editors and nano in terminal-based editors. Now, there are many other great open-source text editors that we might’ve missed in this article so, let us know your favorites.

Frequently Asked Questions On Linux Text Editors

Microsoft’s VS code is by far the best text editor for Linux. It is also the most popular choice as it comes with a great UI and overall features. Some of the other best text editors for Linux are Atom and Vim.

You can install most text editors using the Aptitude (apt) package manager. If you don’t find the text editor that you want to install, you can search for the text editor on Google, find its official website, and add the PPA or download the .deb or .rpm files.

There are three ways of opening and editing a text file in Linux.
Method 1: Double-click on the text file and it will be opened by the default text editor of your Linux distribution.
Method 2: If you have Vim installed, navigate to the directory where the text file resides and type the command vim followed by the file name. The command would be “vim file.txt”
Method 3: You can also use the nano text editor to open the text file. The command to do the same is nano file.txt

Did you find this list of the best text editors for Linux and programming helpful? Don’t forget to let us know your choices and feedback.

Источник

22 Best Linux Text Editors for Programming & Coding

Home » SysAdmin » 22 Best Linux Text Editors for Programming & Coding

The number of Linux text editors has been steadily rising over the past two decades. All Linux distributions come with a built-in text editor. But some editors add extra features or an easy-to-use interface.

The question remains: Which is the best text editor for Linux?

This article provides a review of the most popular, feature-rich, and useful source-code Linux text editors. The list is ranked by how widely editors are used, and how many applications they can be used for.

What is a Text Editor in Linux?

A text editor, also known as a code editor, is an application designed for coding and editing in HTML, CSS, JavaScript, PHP and many other programming languages. Most editors come with features such as syntax highlighting, easy navigation, customizable interfaces, search and replace options, and so on.

In Linux, there are two types of text editors:

  • Command-line text editors. A good example is Vim, which gives you the option of jumping into the editor from the command line. System admins will find this very useful when editing configuration files.
  • Graphical user interface (GUI) text editors. This type of text editor features a GUI but cannot be used from the command line.

Best Text Editor Options for Programmers

Sublime Text

What makes Sublime Text stand out is its ability to make use of each OS’ native functionalities. That makes Sublime Text one of the more resource-efficient options.

Pros: Sublime Text is highly customizable, both in appearance and in functionality (using plugins). In addition to having many of the basic editor features (like colored syntax and searchability), Sublime adds a Goto Anything feature. You can search inside or outside the application or open and manipulate files with a quick keystroke. It also allows multiple selections, so you can highlight multiple lines and edit them all at once.

Cons: Sublime Text has a steep learning curve even though it’s designed to simplify workflows. You can use it free of charge, but it has a very intrusive popup system asking users to buy a license.

How to Install

Sublime Text is not a default application on most Linux installations. Install it with the following command:

Almost all Linux distributions, even older versions, come with the Vim editor installed. Vim stands for Vi Improved, meaning that Vim is a modified and improved version of the old Vi text editor.

Читайте также:  Node install version windows

Pros: Vim supports automatic commands, digraph inputs (useful in programming), split and session screens, tabs, colored schemes (color-coded by function), and tagging. It can be configured with plugins and comes with a tutorial (invoked with the vimtutor command). When you master the commands, Vim is very efficient.

Cons: It does not have a GUI. The only way you can initiate Vim is from the command line. The interface is user-unfriendly, while some commands are not intuitive. Coding a file from scratch would be too complicated. The learning curve can be steep, but Vim is very popular in the Linux community.

Nano Editor

Nano is a revision of an older editor called Pico and comes pre-loaded on most Linux installations. Nano is an ideal lightweight editor for beginners. It’s a lot easier to use than Vim, so it’s worth learning Nano for quick configuration edits.

Pros: It supports GNU Autoconf, interactive search-and-replace, auto-indent, and spellcheck. Nano is intuitive and easy to use. It lists the keystroke commands at the bottom of the editor, so you don’t have to memorize or look them up.

Cons: The list of commands is short and some may be unintuitive.

Atom is a popular open-source code/text editor that works across several platforms such as Windows, Mac, or Linux. Atom is also considered to be one of the best Python code editors.

Pros: Atom has color-coded syntax, a smart autocomplete feature, multiple panes, and a search-and-replace feature. It also has its own package manager for plugins, so you can easily expand its functionality. You can also customize the appearance manually by using themes. A new plugin – called teletype – allows you to share workspaces with other Atom users.

Cons: Most users will have to tweak the default configuration. Low-spec computers will struggle to run Atom, especially if you load multiple projects.

How to Install

Atom is not typically included in a default Linux installation. Install it with the following commands:

For RedHat or CentOS systems, use the yum install command instead of apt-get install.

Gedit

Gedit is a text editor that comes with the GNOME desktop environment. The design emphasizes simplicity so gedit is a great editor for beginners. Even though simple in design, gedit is a powerful tool.

Pros: The uncomplicated interface includes clipboard support, multilanguage spellchecking, undo/redo, syntax highlighting for various languages (C, C++, Java, Python, etc,), color-coded syntax, and has a flexible plugin system.

Cons: This editor works well if you do not need too many features, or if you simply prefer a clean interface. Gedit works great with GNOME, but there are better options for other desktop environments.

How to Install

On older versions of Linux, or versions without GNOME, it may not come pre-installed. Install gedit with the following command:

Note: Can’t decide between CentOS and Ubuntu? Read our CentOS vs Ubuntu comparison article.

Visual Studio Code

If you’ve installed Anaconda on Linux, you may be familiar with the option to install Microsoft Visual Studio Code. Even though it’s from Microsoft, VSCode is cross-platform, meaning it works on Windows, Linux, and Mac.

Pros: Visual Studio Code is lightweight but powerful, and it offers an extensive library of add-ons. These include additional programming language support, debuggers, and commands. This text editor is an excellent choice for developing JavaScript applications and working in cross-platform environments.

Cons: Compared to other text editors on this list, VSCode might not always run properly on Linux, especially Ubuntu. It is also known to use a lot of memory and CPU resources. Furthermore, it may run slower compared to other text editors.

How to Install

Install VSCode with the following command:

GNU Emacs

GNU Emacs is a text/code editor for Linux professionals created by Richard Stallman, the founder of the GNU project. Emacs allows you to write code, display a manual, or draft an email from the same interface.

Pros: It has content-aware editing modes, extensive documentation and a tutorial, incredible language support, and a package manager for extensions. It also offers cross-compatibility with other GNU apps, including an organizer, mail app, calendar, and debugger.

Cons: It’s not for everyone. You might choose Emacs if you have multiple different tasks and want a standard interface. It’s designed for the Linux power user, so if that’s you, it’s worth a try.

How to Install

Install GNU Emacs with the following command:

Notepadqq

Notepadqq is a Linux editor inspired by the Notepad++ application for Windows. Even though different developers manage the projects, Notepadqq is a fair replica of Notepad++.

Pros: Notepadqq supports tabbed projects, color-coded syntax, syntax highlighting, auto-tabbing, and a good search-and-replace feature. It has a smart-indent feature that remembers the indentation settings of the last line typed. Another strong point is how efficiently it converts files between various types of character encoding.

Cons: Notepadqq supports over 100 languages but if you compare it to other text editors, Notepadqq’s set of features might seems lacking. It opens any text file though it doesn’t do tag matching or auto-completion.

How to Install

Install Notepadqq with the following command:

Note: Most modern Linux distributions support Snap. If you’re running CentOS (or another Linux distribution without Snap), you’ll need to install the Snap app first.

Brackets

Brackets is a Linux editor designed around HTML and web design. It’s a cross-platform editor so that you can run it on Windows, Mac, or Linux for a seamless editing experience.

Pros: Brackets is a great choice for web developers. It includes live-preview for testing the appearance of your HTML code, plus inline editors. Like many other editors, it supports many extensions to add functionalities.

Cons: Brackets may stutter on older computer systems. Natively, it only supports HTML, CSS, and JavaScript. You can add more with extensions, though.

How to Install

Install Brackets with the following command:

Bluefish Text Editor

The bluefish text editor is aimed at making coding more accessible. It works on most platforms so that you can use it on Linux, Mac, or Windows.

Pros: Bluefish can be enhanced with plugins and supports standard features like color-coded syntax, auto-indent, and auto-complete for tags and classes. It also features an auto-recover option, in case of a power outage or system crash. It organizes data and code in a way that’s intuitive and easy to read.

Cons: Bluefish is not updated regularly and is already getting a bit outdated. It is useful if you are new to writing code or editing configuration files. However, some advanced features are tough to find, and the UI is not optimized for advanced users.

How to Install

Install Bluefish by executing the following command:

Geany

Geany works as a text editor, but its primary function is as an Integrated Desktop Environment (IDE). It is a lightweight GUI text editor with basic IDE features. Its primary purpose is to be tight and compact with short load times and limited dependencies on separate packages or external libraries on Linux.

Pros: It is a compact cross-platform, flexible and powerful editor that supports most programming languages. It is customizable with plugins, and features a split window, colored syntax, line numbering, and autocomplete.

Читайте также:  The virtual machine ubuntu has terminated unexpectedly during startup with exit code 1 0x1 linux

Cons: Not everyone will need IDE features, meaning that Geany is focused on coding from scratch and debugging issues. Use Geany if you need full programming functionality, including the editor, build automation, and debugging all accessible from a single interface.

How to Install

Install Geany with the following command:

The gVim text editor is an enhanced version of Vi and Vim.

Pros: If you’re already familiar with Vi and Vim, you’ll appreciate the added functionality of gVim. The options include encryption, pop-out menus, and cross-platform compatibility. gVim handles huge files better than other text editors. Another handy feature is that gVim uses a different cursor for insert and command modes.

Cons: The gVim editor requires a graphical interface, making it unavailable on systems that run without a GUI. Like Vi and Vim, gVim has a steep learning curve, so if you’re not familiar with the Vi/Vim editor, gVim might not be the best choice.

Neovim

As the name suggests, Neovim is another editor based on Vi/Vim. Neovim aims to update the Vim-style editor with modern features, such as compatibility with other applications.

Pros: Like other Vi/Vim-based editors, Neovim uses the same basic commands. It adds robust support for plugins and integration with other applications. It was designed to be faster and use less memory, making it an excellent choice for resource-conscious users. Neovim also includes a terminal emulator, which allows you to run terminal commands from the interface.

Cons: Some users report that, despite the improvements, switching between insert and command mode slows their input. It’s also not available on many older systems. Although Neovim is much more customizable, personalization can be time-consuming. Finally, like other Vi/Vim-based editors, there is a steep learning curve to use Neovim effectively.

Pico stands for Pine Composer. It’s a text editor that comes with the Pine email application. Pico is the precursor to the Nano text editor.

Pros: Pico displays commands on the screen, making it easier to use without memorizing key combinations. It includes most basic text-editor functions, including find/replace (in a single document). Users like Pico because it’s simple to use. Many plugins are available to add functionality and customization.

Cons: There is no support for working with multiple files, copying/pasting between files, or searching/replacing them on multiple files.

Lime Text

The Lime text editor was a project designed as an alternative to the Sublime editor. Some prefer it because the Sublime text editor isn’t open-source.

Pros: Lime aims to duplicate all the features of Sublime, in an open-source format.

Cons: Support and development for the Lime Text project are spotty. You can install it with instructions from the Github page, but it appears to still be under development.

Kate / Kwrite

Kate stands for KDE Advanced Text Editor. KDE is a desktop environment (graphical interface) for Linux. The KDE desktop isn’t required to use Kate – you can install it on Windows, Linux, and Mac.

Pros: Kate allows you to edit multiple documents at the same time. It supports color-coded syntax, customization, and plugins. Kwrite is a lighter utility, used to open and edit a single file quickly. If you use the KDE desktop environment, Kate / Kwrite is a solid editor to use.

Cons: Not many users have complaints about the Kate editor.

JED Editor

JED is a command-line text editor that acts as a graphical interface. It is available on most platforms.

Pros: JED uses drop-down menus, making it more intuitive for people familiar with word processors. It supports color-coded syntax for many different programming languages and has broad support for plugins. JED is also light on system resources, making it an excellent choice for older systems.

Cons: Very few users have complaints about the JED editor.

Leafpad

Leafpad is a Linux-based text editor designed to be simple and lightweight.

Pros: Leafpad uses minimal system resources, making it a great choice for older systems. It provides a decent feature set sufficient for simple editing. Leafpad would make an excellent secondary editor for quick, simple jobs.

Cons: Leafpad is not intended to be a full-featured text editor. It contains some of the more advanced features, such as multiple documents, for speed and efficiency.

Light Table

Light Table is an integrated desktop environment for evaluating software. It works as a text editor, but its main feature is live feedback on code. Light Table is available on most operating systems.

Pros: Light Table’s features include in-line code evaluation, which lets you test code without compiling. It also runs the code as you’re entering it, allowing you to debug on the fly. Many plugins are available to expand Light Table’s functionality. It is also reasonably fast, even without a high-end system.

Cons: Light Table is still in the early stages of development, meaning it doesn’t support all programming languages. It also has a moderate learning curve – the commands are not displayed on the screen. Also, Light Table is based on a web browser, which limits its usability on text-only systems.

Medit

Medit is another open-source, cross-platform text editor designed for Windows and Linux systems.

Pros: Medit includes common text-editor commands, such as find/replace, color-coded syntax, and plugin support. It also adds a split view for working on multiple files at once. It’s a good editor with plenty of features, but nothing unique that sets it apart.

Cons: Medit is designed for graphical interfaces. It has a standard menu bar for commands, but it seems to lack robust documentation.

Kakoune Code Editor

Kakoune is a different kind of text editor for Linux. Instead of focusing on inserting/composing text, it doubles down on navigating around the existing text. In this way, it’s similar to the Vi/Vim editor, in that it uses different modes, like insertion mode and command mode.

Pros: Kakoune includes most modern features, such as color-coding, autocomplete, and on-screen help. One key benefit is the ability to create multiple selections. Kakoune makes the workflow of creating and managing files more straightforward and intuitive.

Cons: Kakoune is only available on Linux-based systems. Even with its enhancements, it’s still based on the Vi/Vim structure, which may be a turn off for users more accustomed to word processors.

Micro Text Editor

The Micro text editor is designed as an enhancement to the Nano text editor. It’s available for Windows, Linux, and Mac.

Pros: Micro is a terminal-based text editor, which means it can run without a GUI. It also includes modern improvements, such as color-coded syntax, plugins, copy/paste, and undo/redo. When it runs in a graphical interface, it has a terminal emulator to execute commands directly.

Cons: Micro still uses hotkeys to execute functions, which some users don’t find appealing. Also, Micro lacks some of the next-generation features that set graphical text editors apart.

This guide should give you a good idea of which linux editor is going to work best for your needs. Each code editor we reviewed has its strengths and weaknesses.

Источник

Оцените статью