In using IntelliJ, I have found that it puts a space in the second and subsequent lines before the asterisk for a block comment, for example:
/***************************************************************************
* This is a code header.
* The extra space before the asterisk is not good.
***************************************************************************/
Our team has a common shared header file which is enforced via Checkstyle, and not everyone uses IntelliJ. I don't know how other IDEs handle headers, and I think some folks are using plain text editors. So, rather than change everyone else, I'd like to get rid of the space that is inserted by default when I reformat the code. Is this possible (either in the IDE, or less preferably, via allowing an optional space in the header file via Checkstyle)?
This is proper programming style as recommended by Oracle. Deviation from this practice is not recommended. If you really wanted to remove the spaces, you could edit your workspace preferences to disable auto-formatting for headers. Or just don't auto-format at all.