Are you tired of using Desktop IDE and looking for a browser-based Code editor for your projects on Linux / macOS?. Monaco Editor is the code editor written in Node.js and it powers VS Code. You can read more about features of Monaco Editor from the official project website.

Monaco Editor is licensed under the MIT License and has support for Chrome, Safari, Firefox, IE 11, Edge and Opera. It can be easily installed on any Linux system provided Node.js is present on the host system.

Installing Monaco Editor – Browser based Code Editor on Linux

Before installing Monaco Editor, you need to have Node.js installed. The following guides should help with the installation of Node.js on your Linux.

How to Install Node.js 10 LTS on RHEL 8

Installing Node.js on Ubuntu 18.04 / 16.04 / Debian 9

Installing Node.js LTS on CentOS 7 / Fedora 29 / Fedora 28

Once you have Node.js installed, run the following command to download and install Monaco Editor

$ git clone https://github.com/Microsoft/monaco-editor.git

Install required Node packages

$ cd monaco-editor/
$ npm install .
added 446 packages from 674 contributors and audited 1496 packages in 58.347s
found 5 vulnerabilities (1 low, 4 high)
run npm audit fix to fix them, or npm audit for details

Then start simpleserver with:

$  npm run simpleserver
> [email protected] simpleserver /home/jmutai/monaco-editor
> gulp simpleserver

[20:30:02] Using gulpfile ~/monaco-editor/gulpfile.js
[20:30:02] Starting 'generate-test-samples'...
[20:30:02] Finished 'generate-test-samples' after 36 ms
[20:30:02] Starting 'simpleserver'...
LISTENING on 8080 and 8088

Access Monaco Editor websites on  http://localhost:8080/monaco-editor/website/