editorconfig command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
editorconfig: command not found
or when using sudo you get the following error message
sudo: editorconfig: command not found
Solutions to editorconfig: command not found
How To Fix editorconfig: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu editorconfig is provided by editorconfig package.
editorconfig is:
This package helps developers define and maintain consistent coding styles between different editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles.
EditorConfig files are easily readable and they work nicely with version control systems.
This package provides editorconfig command which can be used to reformat and indent code files using editorconfig configuration file.
To fix this problem, we can install more using the command below.
sudo apt-get -y install editorconfig
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install editorconfig.
sudo apt -y install editorconfig
Or if you have aptitude installed you can use the following command.
sudo aptitude install editorconfig
Summary
In this tutorial we learn how to fix editorconfig command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.