Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Wrong line comment indentation

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?

like image 364
0leg Avatar asked Oct 18 '16 16:10

0leg


1 Answers

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.

enter image description here

This answer is based on Android Studio 2.3.

like image 145
jgrocha Avatar answered Sep 20 '22 21:09

jgrocha