Lite XL：为 Linux 用户提供的轻量级、开源的文本编辑器
编辑器 Lite XL

> 
> 你是否在寻找一个新的文本编辑器替代品？你应该试试这个轻量、简洁、快速、功能丰富、可扩展性极强的编辑器。
> 
> 
> 


当然，有很多文本编辑器或代码编辑器可以使用。一些流行的包括 Eclipse、[Visual Studio Code](https://itsfoss.com/install-visual-studio-code-ubuntu/)、[PyCharm](https://itsfoss.com/install-pycharm-ubuntu/)、[Atom](https://itsfoss.com/install-atom-ubuntu/)、[IntelliJ](https://itsfoss.com/install-intellij-ubuntu-linux/)，以及 [Sublime Text](https://itsfoss.com/sublime-text-3-linux/)。


但是你想尝试一些有趣的东西，完全专注于给你一个极简的体验吗？


来认识一下 Lite XL 编辑器。


说实话，在上周之前我对它一无所知。但是，它以其 **极简主义的设计** 和它 **在编码时有多么快** 成功地惊到了我，但最重要的事实是它与 Visual Studio Code 相似。


所以，在开始之前，让我告诉你，如果你是一个 [Visual Studio Code 粉丝](https://itsfoss.com/visual-studio-code-vs-atom/)，你绝对应该试试 Lite XL。它可能不是绝对的替代品，而是类似使用场景的精简版。


![Showing how Lite XL looks](/data/attachment/album/202204/22/092835k8bkgbdlxgckrxcr.png)


### Lite XL：用 Lua 编写的轻量级文本编辑器


Lite XL 是一个用 Lua 编写的有趣的开源文本编辑器（特别是为建立轻量级应用而定制）。


它也可用于 Windows、Linux 和 macOS。但是，有这么多 [现代文本编辑器](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/)，为什么还要有个 Lite XL？


![Lite XL Customize Configuration](/data/attachment/album/202204/22/092835qoy8v4yk6olxdzlp.png)


通常情况下，大多数时候我们并不关心文本编辑器会消耗我们系统的资源。然而，在创建 Bash、Python 或任何其他类型的脚本时，你会依赖文本编辑器，而它的资源效率越高越好。


当然，文本编辑器并不像其他一些应用那样对资源要求很高。但是，如果这对你很重要的话，我观察到的情况是这样的：


Lite XL 只使用了 **3MB** 的磁盘，并消耗了大约 **20MB** 内存，而 Visual Studio Code 使用将近 550MB 内存。


**你能看到这些类似的编辑器之间的这种奇妙的差别吗？**


不仅仅是资源使用量，它也是高度可定制的。


请注意，在不同的系统配置下，资源占用的统计数字会有所不同。


### Lite XL 的特点


![](/data/attachment/album/202204/22/092836l7otc1k1k82hmcc8.png)


根据现有的官方信息，其最受欢迎的一些功能包括：


* **跨平台：** 它目前可以在 Windows、Linux 和 macOS 上使用。
* **轻量级：** 正如我们之前所描述的，它的使用量几乎没有超过 10MB 的内存。
* **可扩展：** 作为一个极简的产品，并不意味着不能定制。Lite XL 可以通过一些可用的插件来扩展其功能，例如，[类似 Visual Studio Code 的智能提示](https://github.com/lite-xl/lite-xl-lsp)。
* **多光标编辑：** 在 Lite XL 中，你可以使用多个光标进行编辑，这听起来很美妙。
* **集成的终端：** 像 Visual Studio Code 一样，Lite XL 实现了它的终端。
* 支持高分辨率显示。
* 更多的颜色主题。
* 支持硬件加速渲染。


### 如何在 Linux 中安装 Lite XL


Lite XL 为 Linux 发行版提供了一个 AppImage 文件。你可以按照我们的 [AppImage 指南](https://itsfoss.com/use-appimage-linux/) 来开始使用。


你可以在其 [GitHub 仓库](https://github.com/lite-xl/lite-xl) 中找到这个 AppImage 文件。


当你前往其 GitHub 发布区，直接进入 “<ruby> 资产 <rt>  Assets </rt></ruby>” 区并下载 `LiteXL_x86_64.Appimage` 文件。


![Downloading Appimage file](/data/attachment/album/202204/22/092836ijhabvp0b3prhr4r.png)


AppImage 文件将被下载到你的下载目录中，因此，在双击该文件之前，请验证它是否允许作为程序执行。


![Verifying execution permissions](/data/attachment/album/202204/22/092836l0lb0pua75a4uq4u.png)


这就好了! 现在你可以双击该文件，开始在你的系统中使用 Lite XL。



> 
> [Lite XL](https://lite-xl.com/)
> 
> 
> 


如果你对探索 Lite XL 感兴趣，你可以参与其 [GitHub 仓库](https://github.com/lite-xl/lite-xl)，访问官方网站，或加入其 [Discord 社区](https://discord.gg/RWzqC3nx7K)。


你喜欢用什么来编辑文本和代码？你是否专注使用轻量级的程序，或者与你的使用情况无关？请在下面的评论中告诉我你的想法。




---


via: <https://itsfoss.com/lite-xl/>


作者：[Marco Carmona](https://itsfoss.com/author/marco/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

Sure, there are [plenty of text editors or code editors](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/) that you can use. Some popular ones include Eclipse, [Visual Studio Code](https://itsfoss.com/install-visual-studio-code-ubuntu/), [PyCharm](https://itsfoss.com/install-pycharm-ubuntu/), [Atom](https://itsfoss.com/install-atom-ubuntu/), [IntelliJ](https://itsfoss.com/install-intellij-ubuntu-linux/), and [Sublime Text](https://itsfoss.com/sublime-text-3-linux/).

But do you want to try something interesting that’s entirely focused on giving you a minimal experience?

Meet ** Lite XL** editor.

To be honest, I had no idea about it until last week. But, it managed to surprise me with its **minimalist design** and how **fast it was at coding**, but the most important fact was its similarity with Visual Studio Code.

So, before everything, let me tell you that if you’re a [Visual Studio Code fan](https://itsfoss.com/visual-studio-code-vs-atom/), you should try ** Lite XL**. It may not be an absolute replacement, but a lite edition of something that resembles the use case.

![lite xl editor screenshot](https://itsfoss.com/content/images/wordpress/2022/04/lite-xl-editor-screenshot.png)

## Lite XL: Lightweight Text Editor Written in Lua

Lite XL is an interesting open-source text editor written in Lua (particularly tailored to build lightweight applications).

It is available for Windows, Linux, and macOS as well. But, with all the available [modern text editors available](https://itsfoss.com/best-modern-open-source-code-editors-for-linux/), why Lite XL?

![lite xl screenshot 2](https://itsfoss.com/content/images/wordpress/2022/04/lite-xl-screenshot-2.png)

Normally, we aren’t concerned about the resources that a text editor can consume on our system most of the time. However, at the time of creating bash, python, or any other type of script, you rely on a text editor, and the more resource-efficient it is, the better.

Of course, a text editor isn’t as resource-hungry as some other applications. But, if it matters to you, here’s what I observed:

Lite XL only uses **three megabytes** in your disk and consumes around **twenty megabytes** of physical memory, compared with the almost five hundred fifty megabytes (~550 MB) that Visual Studio Code uses.

**Can you see this wonderful difference between these similar editors?**

Not just the resource usage, it is highly customizable as well.

Note that the resource usage stats can vary for different system configurations.

## Features of Lite XL

![lite xl screnshot 1](https://itsfoss.com/content/images/wordpress/2022/04/lite-xl-screnshot-1.png)

As per the official information available, some of its most popular features include:

**Cross-Platform**It currently works on Windows, Linux, and macOS.*:***Lightweight:**As we described before, its usage hardly ever exceeds 10 MB in RAM.**Extensible**: Being a minimal offering doesn’t mean not being customizable. Lite XL can extend its functionalities thanks to several plugins available, for example,[VSC-like intellisense](https://github.com/lite-xl/lite-xl-lsp?ref=itsfoss.com).**Multi-cursor editing**: It’s as wonderful as it sounds, inside Lite XL you can work with multiple cursors.**Integrated terminal**: Like Visual Studio Code, Lite XL implements its terminal.- High DPI display support.
- Additional color themes are available.
- Supports hardware-accelerated rendering.

## How to Install Lite XL in Linux

Lite XL offers an AppImage file for Linux distributions. You can follow our[ AppImage guide](https://itsfoss.com/use-appimage-linux/) to get started.

You can find the AppImage file on its [GitHub repository](https://github.com/lite-xl/lite-xl?ref=itsfoss.com).

Once you head to its GitHub releases section, go directly to the Assets section and download the ** LiteXL_x86_64.Appimage** file.

![downloading appimage file](https://itsfoss.com/content/images/wordpress/2022/04/Downloading_Appimage_file-800x447.png)

An AppImage file will be downloaded into your download directory, so, before double-clicking on the file, verify it is allowed to execute as a program.

![verifying execution permissions](https://itsfoss.com/content/images/wordpress/2022/04/Verifying_execution_permissions-800x535.png)

That’s right! Now you can double-click on the file and start using ** Lite XL** in your system.

If you’re interested in exploring Lite XL, you can get involved in its [GitHub repository](https://github.com/lite-xl/lite-xl?ref=itsfoss.com), visit the official website, or join its [Discord community](https://discord.gg/RWzqC3nx7K?ref=itsfoss.com).

*What do you prefer to edit text and code? Do you focus on using a lightweight program, or is it irrelevant for your use case? Let me know your thoughts in the comments down below.*