Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Eclipse 中,我们可以用 try/catch 包围一段代码。我想用 if 语句包围一段代码。有没有快捷键。选择代码块后按Ctrl+1并没有提示我用If.
If
突出显示代码块,按Alt+ Shift+ Z,然后选择 if (3)。
在 Eclipse 伽利略
Surround with
if statement