简体   繁体   English

Android Studio - 如何使 R.string 在编辑器中显示文本

[英]Android Studio - how to make R.string show text in the editor

Sometimes in the activity or xml, Android studio editor directly shows the text that is mapped for the particular R.string and When I click on that text, it changes to R.string.<>. Sometimes in the activity or xml, Android studio editor directly shows the text that is mapped for the particular R.string and When I click on that text, it changes to R.string.<>.

Few times, I see activity or xml editor shows R.string.<>, now from the editor is there a short-cut to see what is the string in that reference without opening strings.xml?几次,我看到活动或 xml 编辑器显示 R.string。

Sometimes in the activity or xml, Android studio editor directly shows the text that is mapped for the particular R.string and When I click on that text, it changes to R.string.<>.有时在活动或 xml 中,Android Studio 编辑器会直接显示为特定 R.string 映射的文本,当我单击该文本时,它会更改为 R.string.<>。

Few times, I see activity or xml editor shows R.string.<>, now from the editor is there a short-cut to see what is the string in that reference without opening strings.xml?有几次,我看到活动或 xml 编辑器显示 R.string.<>,现在从编辑器是否有快捷方式可以在不打开 strings.xml 的情况下查看该引用中的字符串?

Sometimes in the activity or xml, Android studio editor directly shows the text that is mapped for the particular R.string and When I click on that text, it changes to R.string.<>.有时在活动或 xml 中,Android Studio 编辑器会直接显示为特定 R.string 映射的文本,当我单击该文本时,它会更改为 R.string.<>。

Few times, I see activity or xml editor shows R.string.<>, now from the editor is there a short-cut to see what is the string in that reference without opening strings.xml?有几次,我看到活动或 xml 编辑器显示 R.string.<>,现在从编辑器是否有快捷方式可以在不打开 strings.xml 的情况下查看该引用中的字符串?

Under Windows, you can use "Ctrl" + "NumberPad+"/"NumberPad-" to fold/unfold the resource and code chunk.在 Windows 下,您可以使用“Ctrl”+“NumberPad+”/“NumberPad-”来折叠/展开资源和代码块。 enter image description here在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM