Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 120942

Summary: [typing] Add surround with if block to Java editor
Product: [Eclipse Project] JDT Reporter: Ritchie Schacher <schacher>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ritchie Schacher CLA 2005-12-14 14:57:26 EST
It would be great to select a block of text, and have it wrap it in something like:

if (expression) {

}

similar to surround with try catch.
Comment 1 Dani Megert CLA 2005-12-15 10:51:00 EST
Select the block and press Ctrl+1.
Comment 2 Ritchie Schacher CLA 2005-12-15 10:55:21 EST
thanks