Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Is it possible in Intellij (surround with method?!/refactoring)?

$
0
0

Hi Intellij Community.

I am pretty bad at searching internet for this functionallity I will describe. I would like to ask if this is possible in intellij?

Let's say I have line

 

myVar.getId();

 

and I would like to transform it to

 

myMethod(myVar.getId());

 

Also is it possible to do something like

 

myMethod(myVar.getId());

 

and if I put my carret after "my" in "myMethod" and would let codeCompletion suggest me "myAnotherMethod" and by some magic shortcut it would end in

 

myAnotherMethod(myVar.getId());

 

??

 

Thank you

 

PS: I hope I made it clear what I am looking for


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>