Two possibilities come to my mind to achieve your goal, but both of them first require a choice of application.
After selecting an operator, press CTRL + SPACE , then type syso and press Enter . The selected statement will be placed inside the System.out block:
System.out.println(statement);
You can also prepare an eclipse template ( Window-> Preference-> Java-> Editor-> Content Assist-> Templates ) and give it some name:
System.out.println(${line_selection});${cursor}
After selecting the operator, press ALT + SHIFT + Z or select the menu item Source-> Volumetric menu (also in the context menu). The template you created should be there, so select it. The selected statement will be wrapped inside the desired code block.
source share