title: Android Studio/IntelliJ - Field/Variable/Constant creation shortcut
body: <p>Trying to go from eclipse where you can go over some text, do ctrl-1, select something like create/extract constant, and then it will automatically create it.</p>
  
  <p>The equivalent is roughly ctrl-shift-alt-T, then select from the listing.</p>
  
  <p>Unfortunately in Android Studio, I keep getting:</p>
  
  <pre><code>"cannot perform refactoring. unknown expression type."
  </code></pre>
  
  <p><strong>Is there any way around this?</strong></p>
  
  <p>What confuses me is that the little lightbulb pops up, and I can click on that, and create constant through there works (and it knows the correct type, etc.).<br>
  <em>An alternative acceptable answer would be how to automatically select the little lightbulb that pops up with a keyboard shortcut</em></p>