title: Function to turn local variable into class variable
body: <p>How to add these two functions to android studio, to turn a existing (not accessible) variable into a private/public? The screenshot is faked and not real, but it is the aim of my question.</p>
  
  <p><strong>To turn a local variable into private/public I have to do the following steps:</strong><br>- Cut <code>[variable-class] [variable-name]</code> <br>- Write <code>[private/public]</code>  <br>- Change cursor position to class-head<br>- Paste <code>[variable-class] [variable-name]</code> <br>- Copy <code>[variable-name]</code> <br>- Change cursor position to class-method <br>- Paste <code>[variable-name]</code></p>
  
  <p><a href="https://i.stack.imgur.com/YHDXk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YHDXk.png" alt="enter image description here"></a></p>