Android using Intellij Version 14 - Updating XML links only in the current XML resource file

I am using Intellij Idea Version 14 for Android development. I recently upgraded to version 14. When editing an XML resource, when I change the identifier of any component (for example, TextView or Button), it asks the question "Refresh also use"? "This will update all XML references and Java R field references." When you click Yes, all files that use the same identifier are changed. Version 13 was executed only in this file. Now the name changes throughout the project wherever it is used. I do not want to change the code in other files. Here is an example.

File 1: First.Java and First.XML have textview with identifier textViewPersonName

File 2: Second.java and Second.XML have textView with identifier textViewPersonName

Now I want to change Second.XML, textViewPersonName to textViewPersonFullName. When you modify this file, Intellij 14 modifies all files (for example, First.Java and First.XML) and updates the textViewPersonName in the first textViewPersonFullName files.

How can I change only in the current file (i.e. Second.XML). Is there a setting?

+7
java android xml intellij-idea
source share
1 answer

if you reorganize the identifier using the [SHIFT] + [F6] shortcut, you can click on the preview and open a second window:

enter image description here

Here you can right-click on the selected line and exclude that refactoring:

enter image description here

Hope this helps

+1
source share

All Articles