Android Studio: Wrong line comment indentation

android-studio, intellij-idea

Solution

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.

Problem

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?

Original source

Related problems