A common question among developers is how to surround the current selection in the editor with a parent statement. For example if you start coding a statement that validates an expression and then want to iterate over an array of expressions and do the same to all its elements.
For this end Eclipse templates provide two variables "line_selection" and "word_selection" that help you build custom selection-based wrappers.
In this example three new templates were added to simplify this scenario:
2 comments:
Cool Ray. Thank you for this info.
Roy! D@mn autocorrect.
Post a Comment