When hitting Ctrl+/
Android Development Studio would put line comment double slashes at the beginning of the line.
Is there any way to make ADS put line comment preserving correct indentation?
You have to go to Settings → Editor → Code Style → JAVA. Select "Code Generation" tab.
Deselect "Line comment at first column" option, on Comment Code section.
This answer is based on Android Studio 2.3.
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