How to disable preview of xml reference values ​​in Android Studio settings / configuration?

I am not sure if my question is formulated correctly, but it’s easier to show an image to explain my question.

In the XML editor, some values ​​are replaced with the actual values ​​that were defined for this record. However, I do not want Android Studio to show me the actual values. Instead, I still prefer it to show link names. So, how do you disconnect the editor from preview this way?

In the image below android:text="@string/sign_up", but the editor shows it as android:text="Sign up..."well as other attributes, and the link name appears only when you hover over this attribute.

How to disable this feature permanently using the installation / configuration of Android Studio?

Update. The same thing happens in .java files. The constants Enums or R.string are replaced by their actual values.

enter image description here

+4
source share
1 answer

For Java files, you can go to Preferences-> Editor-> General-> Code Folding and uncheck the "Android String Links" checkbox, but this only applies to code not to xml layouts

- Oleg Bogdanov

+2
source

Source: https://habr.com/ru/post/1660220/


All Articles