环绕功能:代码 |使用 "Surround with" (Code | Surround with)或 "Ctrl + Alt + T" 可以将表达式或语句放在块或语言构造中。IntelliJ IDEA 中的此功能适用于:
if
if/else
while
do/while
for
try/catch
try/finally
try/catch/finally
synchronized
Runnable
{}
(expr)
((Type)expr)
!(expr instanseof Type)
!(expr)
if / else
do / while
try / catch
try / finally
try / catch / finally
with
function
{ }
function expressi
function expression
foreach
弹出窗口根据上下文显示包围语句的列表。