RubyMine 2018.1 Help

Text Direction

RubyMine enables you to choose the base direction for rendering strings and tokens, containing bidirectional text, like a mix of English and Hebrew or Arabic.

To choose the direction for rendering bidirectional strings:

  • On the View menu, point to BiDi Text Direction and select the required direction:

    bidi text

    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.

By default, the direction of rendering is content-based, which means that text direction is defined by the text with which the string begins. For example, if the string start with English, then the base direction of text is LTR.

However, it is also possible to always use either LTR or or RTL as the base direction.

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

Bidirectional strings
Last modified: 1 August 2018