I started Android studio (2.1.2) today and when trying to add block comments using /**
+ enter, it is not generating the entire block with params and return statement.
I'm not sure what is causing this.
I tried googling the issue. But I'm unable to fix as of now with the solutions out there.
Please help me out to fix this issue.
It's a Bug in Android studio.
If it is the last method in the class and you have some commented block comments below it, then you can't generate block comments.
Some thing like this:
{
......
// You can't do a /** + enter here;
// it won't generate JavaDoc if you do.
public ViewPager getViewPager() {
return mViewPager;
}
// /*
// * Inner classes, interfaces, enums
// */
}
In this case, IDE doesn't generate block comment for getViewPager()
.