Indent line comments; add line space after starting new method

Answered

Two quick questions:

  1. Line comments via Meta-/ put the comment at the beginning of the line. This breaks checkstyle and causes many headaches; can I get the comment indented properly in the same command, and without extra spaces between the "//" and the comment text?
  2. If I start a new method in between two existing methods, it'd be nice if Intellij automatically assderted a newline after the method closing brace. Is this possible?

Thank you!

0
2 comments

1. See Settings (Preferences on macOS) | Editor | Code Style | Java | Code Generation | Comment Code | Line comment at first column

2. See Settings (Preferences on macOS) | Editor | Code Style | Java | Blank Lines | Minimum Blank Lines | Around method

1

Please sign in to leave a comment.