IDEA 界面显示 visual layout of bidirectional text can depend on the base direction ...

IntelliJIDEA允许用户选择呈现包含双向文本(如英语和希伯来语或阿拉伯语混合)的字符串和标记的基础方向。默认按照内容开始的文本决定方向,但也可设定固定左到右或右到左。这会影响双向字符串的显示方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Text direction
Last modified: 26 August 2021
Required plugins: Resource Bundle Editor

IntelliJ IDEA enables you to choose the base direction for rendering strings and tokens (for example, in properties files), containing bidirectional text, like a mix of English and Hebrew or Arabic.

Choose the direction for rendering bidirectional strings
On the View menu, point to BiDi Text Direction and select the required direction:

By default, the direction for rendering is content-based, which means that text direction is defined by the text with which the string begins. For example, if the string starts with English, then the base direction of text is considered left-to-right.

However, it is also possible to always use either left-to-right or right-to-left as the base direction.

Depending on the selection, bidirectional string literals change their appearance:

在这里插入图片描述
文字方向
最后修改:2021 年 8 月 26 日
所需插件:资源包编辑器

IntelliJ IDEA 使您能够选择呈现字符串和标记的基本方向(例如,在属性文件中),其中包含双向文本,例如英语和希伯来语或阿拉伯语的混合。

选择渲染双向字符串的方向
在视图菜单上,指向双向文本方向并选择所需的方向:

默认情况下,渲染方向是基于内容的,这意味着文本方向由字符串开头的文本定义。例如,如果字符串以英文开头,则文本的基本方向被认为是从左到右。

但是,也可以始终使用从左到右或从右到左作为基本方向。

根据选择,双向字符串文字会改变它们的外观:
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值