In eclipse we can surround a piece of code with try/catch. I want to surround a piece of code with if statement. Is there any shortcut key. Pressing Ctrl + 1 after selecting the block of code did not give me hint to surround with If.
In eclipse we can surround a piece of code with try/catch. I want to
Share
Highlight the block of code , press Alt+Shift+Z, then choose if (3).