PyCharm 和 Android Studio 为 Linux 版本增加 Wayland 支持
Wayland PyCharm IntelliJ
![](/data/attachment/album/202309/01/155506s4y763kpkilia3z9.jpg)



> 
> 如果你是在 Linux 或 WSL 环境下进行开发的开发者，以下这个好消息会让你兴奋起来。
> 
> 
> 


JetBrains 平台近日宣布，基于 IntelliJ 的 IDE 最终将实现对 Wayland [显示服务器](https://itsfoss.com/display-server/) 协议的支持。可能你并不知道，PyCharm 和 IntelliJ IDEA 就是搭建在 IntelliJ 平台之上的出色 IDE，而由谷歌打造的 Android Studio 也是同样的应用。


Wayland 协议逐步成为 Linux 发行版的默认选择，与 X11 相比，它可以提供更快、更安全和更稳定的体验。如果你使用的编程环境能够支持 Wayland，那么用户体验会得到显著提升。


但是，具体表现在哪些方面有所增强，他们怎么实现这个目标的呢？下文有详细解说。


### 分数缩放和 WSL 集成


使用 [Linux 版本的 IntelliJ IDEA](https://itsfoss.com/install-intellij-ubuntu-linux/) 等 IDE 的用户，终将借助分数缩放，可以在高分辨率显示屏上自定义字体、图标的大小。


无论是多屏幕环境，还是高清显示屏，都可以通过 Wayland 的支持享受到提升的 IDE 体验。


你不再需要担心 IDE 的文本显示模糊的问题。


不仅仅局限于原生的 Linux 环境，同样适用于使用 Windows 的 Linux 子系统（WSL），即那些 “[Bash on Windows](https://itsfoss.com/install-bash-on-windows/)” 用户。


Wayland 的支持将确保你可以无缝集成 WSL。


此外，作为用户，你还将享受到 Wayland 带来的以下新特性：


* 弹出式窗口
* HiDPI 支持
* 窗口的交互式缩放


总的说来，通过实现 Wayland 的支持，基于 IntelliJ 的 IDE 将会更具响应速度，实现更高的稳定性和安全性。


### 构建 Wayland 工具集


让 Java 支持 Wayland 是件颇具挑战性的任务，但 IntelliJ 已经找到了应对之策。


JetBrains 和 Oracle 的桌面团队共同开发出一个基于 OpenJDK 21 的 **Wayland 工具集**。


由于拥有该工具集，你将获得一系列能力，包括：


* 基于软件的渲染。
* 极简的窗口装饰。
* 弹出窗口，包括应用于顶层菜单的窗口。
* 提供包括不同每台监视器比例的 HiDPI 和多监视器支持。


此外，他们还计划添加剪贴板**拖放支持**、**基于 Vulkan 的加速渲染**，以及**使用快捷键在窗口间切换**的功能。


你可以通过访问 [OpenJDK 维基](https://wiki.openjdk.org/display/wakefield/Work+breakdown) 来关注 Wayland 工具集的开发进程。


至于 Wayland 支持的具体实现时间并未明确，但可以肯定的是，这项工作正在进行中，而且这也表明 IntelliJ 平台也正在关注以 Linux 为主的用户群。


如需获取更多信息，你可以访问 [官方公告](https://blog.jetbrains.com/platform/2023/08/wayland-support/) 进行查阅。


?对于 IntelliJ 决定在其 IDE 加入 Wayland 原生支持你有什么看法呢？欢迎在评论区分享你的意见。


*（题图：MJ/dbd4f013-3c11-4c2d-83c1-c11df7c8c17b）*




---


via: <https://news.itsfoss.com/intellij-wayland-support/>


作者：[Ankush Das](https://news.itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：ChatGPT 校对：[wxy](https://github.com/wxy)


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


OK
![](/assets/images/pikapods-banner-v3.webp)


![](/assets/images/pikapods-banner-v3.webp)

Good news for developers using Linux!

The Jet Brains platform announced that IntelliJ-based IDEs will finally support the Wayland [display server](https://itsfoss.com/display-server/?ref=news.itsfoss.com) protocol. If you did not know, PyCharm and IntelliJ IDEA are some impressive IDEs based on the IntelliJ platform, and Android Studio is also an example (built by Google).

The Wayland protocol is gradually becoming the default for Linux distributions to provide a faster, secure, and stable experience compared to X11. And, if the coding environments you use support it, the user experience will be enhanced.

But what are the enhancements, and how do they plan to do it? Let me tell you.

**Suggested Read **📖

[Linux Jargon Buster: What is a Display Server in Linux? What is it Used for?In Linux related articles, news and discussions, you’ll often come across the term display server, Xorg, Wayland etc. In this explainer article, I’ll discuss display servers in Linux. What is display server in Linux? A display server is a program which is responsible for the input an…](https://itsfoss.com/display-server/?ref=news.itsfoss.com)![](https://itsfoss.com/content/images/wordpress/2020/08/display-server-linux.png)


![](https://itsfoss.com/content/images/wordpress/2020/08/display-server-linux.png)

## Fractional Scaling and WSL Integration

Users utilizing an IDE like [IntelliJ IDEA for Linux](https://itsfoss.com/install-intellij-ubuntu-linux/?ref=news.itsfoss.com) can finally benefit from fractional scaling to customize the size of fonts/icons on a high-resolution display.

Multi-monitor setups and high-resolution displays both get an enhanced IDE experience with Wayland support.

You do not have to worry about blurry texts on your IDE anymore.

Not just limited to the native Linux experience but also for users who rely on Windows Subsystem for Linux or, if you would like to call it, '[Bash on Windows](https://itsfoss.com/install-bash-on-windows/?ref=news.itsfoss.com)'.

The Wayland support will ensure that you get a seamless WSL integration.

In addition, you should have the following new benefits with Wayland:

- Pop-up windows
- HiDPI support
- Interactive resizing of windows

Overall, IntelliJ based IDEs should have more responsiveness, stability, and security by introducing the Wayland support.

**Suggested Read **📖

[How to Install Linux Bash Shell on Windows [Step-by-Step Guide]Step-by-step screenshot guide to show you how to install bash on Windows 11 and 10.](https://itsfoss.com/install-bash-on-windows/?ref=news.itsfoss.com)![](https://itsfoss.com/content/images/2023/01/install-bash-in-windows-1.png)


![](https://itsfoss.com/content/images/2023/01/install-bash-in-windows-1.png)

## Building a Wayland Toolkit

Wayland support on Java is not easy, but IntelliJ has a solution.

Jet Brains and the Oracle desktop team built a **Wayland toolkit** based on OpenJDK 21 to achieve this.

With the toolkit, you get some abilities like:

- Software-based rendering.
- Minimal window decorations.
- Popup windows, including those that are used for top-level menus.
- HiDPI and multi-monitor support, including different per-monitor scales.

Furthermore, they plan to add clipboard **drag and drop support**, **Vulkan-based accelerated rendering**, and **switching between windows** using a shortcut.

You can keep an eye on the Wayland toolkit's progress on the [OpenJDK wiki](https://wiki.openjdk.org/display/wakefield/Work+breakdown?ref=news.itsfoss.com).

There's no particular timeline to expect the Wayland support. But, it is good to hear that it is an ongoing effort, and IntelliJ as a platform also cares about its Linux-focused users.

You can learn more about it in its [official announcement post](https://blog.jetbrains.com/platform/2023/08/wayland-support/?ref=news.itsfoss.com).

*💬 What do you think about IntelliJ's decision to add Wayland native support to its IDEs? Share your thoughts in the comments below.*

## More from It's FOSS...

- Support us by opting for
[It's FOSS Plus](https://itsfoss.com/#/portal/signup)membership. - Join our
[community forum](https://itsfoss.community/). - 📩 Stay updated with the latest on Linux and Open Source. Get our
[weekly Newsletter](https://itsfoss.com/newsletter/).