How to have eclipse add line comments at the indent instead at the beginning of the line?
When running Toggle C开发者_JS百科omment on one or more lines of code, Eclipse adds the comment (//) at the beginning of the line. Is it possible to have Eclipse add the line comment where the code is indented at instead?
This can be fixed by running Source > Format but it would be nice if it can be done automatically when Toggling Comment.
A workaround solution is to have Eclipse do the formatting automatically: you can enable this through the "Save Action" preference.
精彩评论