Block comment style in Eclipse (write /* and press Enter)
/*
* Hello World
*/
Block comment style in Android Studio
/*
Hello World
*/
How can I make my Android Studio block comments look like the one in Eclipse? Couldn't find anything in the settings.
You can create a Live Template to do that.
Follow these steps:
File -> Settings) and go to Live Templates (under Editor)+ (top right) and choose 1. Live Template
/* as abbreviation and add a description (if desired)Add the following to the Template text:
/*
* $END$
*/
Set Expand with to ENTER.
Define (highlighted in blue at the bottom) and select areas where you would like the template to be applicable (Java, for example).Apply or OK
Now you can type /* followed by ENTER to insert the desired code :)
The closet way of reproducing your result would be to type /** and press Enter. This will produce javadocs comments of the form:
/**
* Hello World
*/
Then you can delete the second asterisk from the beginning.
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