Surround with allows you surround selected items with and replace with new elements depending on context.
Several statements can be surrounded with
try / catch / finally |
if / else |
while |
with |
{ -> ... }.call() |
---|---|---|---|---|
|
|
|
|
|
Single statements can be surrounded with
brackets |
if / else (for boolean) |
while (for boolean) |
with |
type cast |
---|---|---|---|---|
|
|
|
|
|