Is there any tool/functionality in IntelliJ/Android Studio/... to put some selected code in a separate function (Like a function builder)?
I know it's a very lazy person question, but this tool could be useful sometimes.
I believe what you are looking for is Extract method refactoring. You can access it via Refactor/Extract/Method menu or using a keyboard shortcut:
Select the code >> Right Click >> Refactor >> Extract >> Method :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With