title: Generate style from xml in intellij (/android studio)
body: <p>Is there a way how to <strong>generate style from XML attributes</strong> so I don't have to manually copy paste 1 by 1? When I prototype, I use the "inline" styles then I want to export styles into styles.xml but manually it is time consuming task. It is just different format, should be easy to automate.</p>
  
  <pre><code>&lt;ImageView
          android:layout_width="80dp"
          android:layout_height="47dp"/&gt;
  </code></pre>
  
  <p><strong>into</strong></p>
  
  <pre><code>&lt;ImageView
          style="@style/h2_image"/&gt;
  
  &lt;style name="h2_image"&gt;
      &lt;item name="android:layout_width"&gt;80dp&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;47dp&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>