Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RTL(Persian-Arabic)Letters Messed up in android studio editor

In AndroidStudio editor when i select part of a Persian text or RTL language(Persian-Arabic)Letters ,it Messed up.

for example this part of code :

   <string name="NetworkConnection">لطفا اتصال اینترنت خود را بررسی نمایید.</string>

But in editor after select part of RTL sentence reshape to this form :

enter image description here

i need to install a plugin or another solution there are?


Edit 1 , Answer :

For Windows OS users , said responses work correctly.

But for Mac OS users , according tools.android.com document by below path in AndroidStudio select Edit Custom Properties

enter image description here

By this , you make idea.properties file in ~/Library/Preferences/{FOLDER_NAME}/idea.properties path that you can edit this file and add your properties like editor.new.rendering=true for RTL Support in AndroidStudio editor.

like image 872
Saeid Avatar asked Aug 02 '15 12:08

Saeid


2 Answers

That's a Reported Bug in Android Studio.

https://code.google.com/p/android/issues/detail?id=57667

And according to the comment #19 and #21 this issue is about to solve in Android Studio 2.0 stable release (soon):

comment #19:

Release in Android Studio 2.0. set "editor.new.rendering=true" in in idea.properties as described in http://tools.android.com/tech-docs/configuration

Not turned on by default in IntelliJ 15, but user configurable.

comment #20:

I've added an example for how to configure it in http://tools.android.com/tech-docs/configuration

This is not going to be a user configurable option; we plan to enable it by default as soon as we've tested it and confirmed that its performance and stability is satisfactory.

like image 81
Saeed Arianmanesh Avatar answered Sep 18 '22 16:09

Saeed Arianmanesh


For Android Studio 1.5 in Windows create file with name "idea.properties" in
C:\Users\ your_user_name_folder \ .AndroidStudio1.5
and write this in the file:

editor.new.rendering=true

I tested it and it works.
persian character selection

like image 20
Mneckoee Avatar answered Sep 20 '22 16:09

Mneckoee