How to turn of that IntelliJ add return type Unit on refactoring like with "Introduce Parameter..." in kotlin?

已回答

When I finish the above Introduce Parameter... : Unit is added. Is it possible stop this behavior? The method should not return anything so I have to remove : Unit manually for each refactoring.

 

0
Hi there, 

Thank you for reaching out! Unfortunately, I couldn't reproduce the issue in my IntelliJ IDEA with the code example shown in your screenshot. Could you please provide more information about the case, including your IntelliJ version, your sample code, and any plugins you have installed, and create an issue here: http://kotl.in/issue  
We're actively monitoring this issue board and will be able to provide you with assistance soon.
0

请先登录再写评论。