I often see comment blocks like:
// ===========================================================
// Methods
// ===========================================================
Is there any way to add them in Eclipse fast?
I often see comment blocks like:
// ===========================================================
// Methods
// ===========================================================
Is there any way to add them in Eclipse fast?
You could try creating a code template: -> Window
-> Preferences
-> Java
-> Editor
-> Templates
.
You can add your own comment template in Eclipse.
I think you can do this under: Main Menu -> Window -> Preferences -> Java -> Code Style -> Code Templates -> Configure generated code and comments
.
Take a look at these instructions here and this answer i think it is exactly what you need.
Ctrl-/ to toggle "//" comments and Ctrl-Shift-/ to toggle "/* */" comments. At least for Java, anyway - other tooling may have different shortcuts.
Ctrl-\ will remove a block of either comment, but won't add comments.