为什么 2020 年是使用 Kate 文本编辑器的最佳时机？
Kate KDE

> 
> 了解更多关于长期受喜爱的文本编辑器的信息，它为每个用户提供了一些东西。
> 
> 
> 


![](/data/attachment/album/202012/17/133952wga2azisy8uy1ajz.jpg)


KDE Plasma 桌面提供了很多东西：一个很棒的桌面、一个灵活的文件管理器，以及紧密集成的应用。然而，人们很容易忽视它的默认文本编辑器，其中之一就是 [Kate](http://kate-editor.org)。2020 年 12 月 14 日，[Kate 将迎来 20 岁生日](https://kate-editor.org/post/2020/2020-11-08-kate-is-soon-20-years-old/)，在其 20 年的发展历程中，它在一个简单明了的编辑器和一个适度的集成开发环境 （IDE） 之间取得了完美的平衡。


### 安装 Kate


如果你正在运行 KDE Plasma 桌面，你可能已经安装了 Kate。如果还没有安装，不管你运行的是哪个桌面，你都可以在你的软件仓库中找到它。


另外，[你可以在 Linux 或 Chromebook 上从](https://flathub.org/apps/details/org.kde.kate) [Flathub.org](http://Flathub.org) 使用 Flatpak 安装 Kate。


在 Windows 上，[你可以从 Windows 商店获得 Kate](https://www.microsoft.com/en-nz/p/kate/9nwmw7bb59hw?rtc=1&activetab=pivot:overviewtab)。


要在 macOS 上安装它，[从 KDE build 网站下载 macOS 版本](https://binary-factory.kde.org/view/MacOS/job/Kate_Release_macos/)。


### 所有的功能


第一眼，Kate 似乎并不显眼。它看起来就像其他的文本编辑器一样：一个巨大的空白窗口，可以接受大量的输入，顶部有一个菜单栏，边缘有一些元数据来指示字符编码和行数。但当你开始使用它的那一刻，你会发现它拥有你所需要的所有功能，就在你想要的地方。


例如，沿着 Kate 窗口的左侧是行数，默认情况下是启用的。更好的是，当你输入常用的编码语言或标记语法时，代码折叠就会被激活。窗口右侧的文件导航面板可以快速、直观地访问文件的不同部分。而窗口底部则包含了常用模式设置，包括插入或覆盖、字符编码（如 UTF-8）和语法高亮。


![Kate](/data/attachment/album/202012/17/134052zv4bgs0hz9mjg9p3.jpg "Kate")


不过，这还不是全部。听起来可能有很多，但布局很方便，很直观。在菜单和设置中还有更多的功能。


Kate 的功能有集成 Git、文件浏览器、shell、打开文档或项目的面板、单词补全、XML 补全、标签式界面、分屏和插件结构，因此你可以进一步扩展其功能。


### 给所有用户使用的编辑器


Kate 的极强灵活性使它既是一个简单的文本编辑器，又是一个强大的 IDE。通过默认使用的熟悉的界面，它吸引了广大的用户；而通过提供与调试器、编译器和代码检查器集成的能力，它吸引了开发人员。


因为它允许用户控制它的 UI 布局，Kate 确保每个用户都能优化使用它的体验。传统上，这一直是一个难以平衡的问题：一个拥有太多功能的编辑器给人的感觉太像一个臃肿的 IDE，而一个界面简单、功能模糊的编辑器给人的感觉是基础的或不方便的。Kate 将真正有用的功能放在了 UI 的最前面，从而让每个人都能享受到，同时又让高级功能可以被发现，但又不碍事。


坦率地说，Kate 让人难以割舍。它使用起来很愉快，配置起来很简单，探索起来也很有趣。今天就安装 Kate 吧，试一试它。它在所有主要的平台上都可以使用，你没有什么理由不选择 Kate 作为你的新宠编辑器。




---


via: <https://opensource.com/article/20/12/kate-text-editor>


作者：[Seth Kenlon](https://opensource.com/users/seth) 选题：[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
The KDE Plasma Desktop has a lot to offer—a great desktop, a flexible file manager, and tightly integrated applications. However, it can be easy to overlook its default text editors, one of which is [Kate](http://kate-editor.org). On December 14, 2020, [Kate turns 20 years old](https://kate-editor.org/post/2020/2020-11-08-kate-is-soon-20-years-old/), and in its two decades of development, it has achieved a perfect balance between a straightforward editor and a modest Integrated Development Environment (IDE).

## Installing Kate


If you’re running the KDE Plasma Desktop, you probably already have Kate installed. In the event that it’s not installed yet, you can find it in your software repository, regardless of which desktop you’re running.

Alternatively, [you can install Kate from ](https://flathub.org/apps/details/org.kde.kate)[Flathub.org](http://Flathub.org) using Flatpak on Linux or Chromebook.

On Windows, [you can obtain Kate](https://www.microsoft.com/en-nz/p/kate/9nwmw7bb59hw?rtc=1&activetab=pivot:overviewtab) from the Windows store.

To install it on macOS, [download the macOS build from the KDE build site](https://binary-factory.kde.org/view/MacOS/job/Kate_Release_macos/).

## All the right features

Kate seems, at first, unassuming. It looks like every other text editor—a big blank window ready to accept lots of typed input, a menu bar along the top, some metadata around the edges to indicate character encoding and line count. The moment you start using it, though, you realize that it has all the features you need, right where you want them.

For instance, along the left side of the Kate window are line numbers, which are enabled by default. Better still, code collapsing is activated when you type in a common coding language or markdown syntax. A document navigation panel on the right side of the window provides quick and visual access to different parts of your file. And the bottom of the window contains common mode settings, including insert or overwrite, character encoding (such as UTF-8), and syntax highlighting.

![Kate Kate](https://opensource.com/sites/default/files/kate.jpg)

That’s not all, though. It might sound like a lot, but the layout is convenient and intuitive. There are even more features available in the menu and settings.

Kate features Git integration, a file browser, shell, open document or project panel, word completion, XML completion, a tabbed interface, split screens, and a plugin structure so you can extend its features even further.

## An editor for every user

Kate’s extreme flexibility allows it to be both a simple text editor and a robust IDE. By defaulting to a familiar interface, it appeals to a wide audience, but by offering the ability to integrate with debuggers, compilers, and code linters, it appeals to developers.

Because it allows the user to control its UI layout, Kate ensures every user can optimize their experience with it. This has been, traditionally, a difficult balance—an editor with too many features feels too much like a bloated IDE, while an editor with a simplistic interface and obfuscated features feels basic or inconvenient. Kate gets it right by placing the really useful features at the forefront of the UI for everyone to enjoy while keeping advanced features discoverable but out of the way.

Kate is, frankly, difficult to walk away from. It’s a pleasure to use, easy to configure, and fun to explore. Install Kate today, and give it a try. Being available on all major platforms, there’s little reason you shouldn’t choose Kate as your new favorite editor.

## 2 Comments