How to alphabetically sort the code in an XML file inside Intellij IDEA 13 for Android?

I used eclipse for training in android, but now using Intellij IDEA 13. I’m used to the eclipse graphical string editor, which can alphabetically sort the string.xml file for me. I want to do the same in intelliJ, but could not find a solution. Here is the code

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">ActionBar App</string>
    <string name="hello_world">Hello world!</string>
    <string name="action_settings">Settings</string>
</resources>

and I want to sort it alphabetically as follows

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="action_settings">Settings</string>
    <string name="app_name">ActionBar App</string>
    <string name="hello_world">Hello world!</string>
</resources>

How to do it? Please, help!

+4
source share
3 answers

, , . , Android, IDEA-72907. android, > [ ] > a > XML { "" . " ..." > Android. ( ) XML , .

, , . , . , , . .

, Lines Sorter, SortSelection . , .

+1

Android XML IntelliJ IDEA 13

how to arrange xml

.

, // /XML/

:

reorder by name

strings.xml ,

Excel A-Z

xcel reorder

0

, IntelliJ IDEA, , , IDE Vim.

- , 3 6 - :

  • "" , "Vim Emulator" .
  • :

    : 3,6sort

  • - . , , Vim, . , "" "Vim Emulator".

, XML - , .. . , , .

Darryl

0
source

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


All Articles