In eclipse, I'd like to select a section of code with my mouse and then hit some sort of keyboard shortcut that causes the selection to be surrounded like so:
// [region]
public void someFunction() {
...
}
// [endregion]
Where the code is surrounded by the (user defined) comment lines "// [region]" and "// [endregion]" How would I do this? In netbeans, you can do something similar as referenced here: http://wiki.netbeans.org/SurroundWithCodeFolding