开发者

How to have eclipse add line comments at the indent instead at the beginning of the line?

开发者 https://www.devze.com 2023-03-20 17:55 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号