在后缀自动完成后从 foreach/if 声明跳转到括号

Jumping to brackets from foreach/if declaration after postfix autocompletion

那么一个情况:

我输入了这个表达式 $items.fe,用 TAB 自动完成它。我最终是这样的:

foreach ($items as $item/*CARET HERE*/)
{

}

是否要从当前插入符位置跳到大括号内?

如果 if/foreach/while 等中只有一个语句,我的工作也要求没有任何括号。如果我只有一个语句,有没有快速删除它们的方法?

Anyway to jump from current caret location, to within the braces?

当前没有 Eclipse 风格的转义 bracket/quote/etc: https://youtrack.jetbrains.com/issue/IDEABKL-6984

但是,由于后缀补全利用 Live Templates 机制,您只需再按一次 TabEnter 即可移动到下一个 edit/entry 点,在您的情况下,它将在大括号内。

As well it is requirement at my work to not have any brackets if only one statement in the if/foreach/while etc.. Any quick way to remove them, if I only have one statement?

我可能只建议使用 Edit | Extend Selection——在空括号内它将 select {} 之间的所有内容(包括实际括号)。