Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to format comments in Android Studio?

I am strating with Android studio (0.8.6) . I would like to know the KeyMap to format the comments in my project. I mean... I know "Ctrl+Alt+L" to format code but it doesn't format the comments as below:

   int notificationId = 005;
//Issue the notification
   NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);

Thanks a lot

like image 201
alfo888_ibg Avatar asked Oct 29 '25 11:10

alfo888_ibg


1 Answers

I want to help another user to solve the problem with the image below (thanks to @Isura's support)

File--> Settings-->Code Style-->Java --> Wrapping and Braces tab and uncheck "Comment at first column"

enter image description here

like image 50
alfo888_ibg Avatar answered Nov 01 '25 00:11

alfo888_ibg