Terminate incomplete expression in IEx
Occasionally you get stuck in an incomplete expression while in IEx. Instead of figuring out which character you need to type to terminate the expression, you can terminate early with
iex(1)> ["ab ...(1)> c" ...(1)> " ...(1)> ] ...(1)> #iex:break ** (TokenMissingError) iex:1: incomplete expression iex(1)>
Another shortcut to achieve the same result is hit
ctrl-g (User switch command),
i (interrupt job),
c (connect to job). This puts you right back in IEx.
iex(1)> ["ab" iex(1)> <<<ctrl-g typed here>>> User switch command --> i --> c Bug Bug ..!!** (EXIT) interrupted iex(1)>