Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You didn't explicitly state emacs, but since you've highlighted lots of editors...</p> <p>In emacs, you can use rectangles for this, where a column is a rectangle of width 1.</p> <p>To create a rectangle, mark the top-left and bottom-right of the rectangle (where the bottom-right mark is one to the right of the further right point included in the rectangle. You can then manipulate via:</p> <p><code>C-x r k</code><br> Kill the text of the region-rectangle, saving its contents as the "last killed rectangle" (<code>kill-rectangle</code>).</p> <p><code>C-x r d</code><br> Delete the text of the region-rectangle (<code>delete-rectangle</code>).</p> <p><code>C-x r y</code><br> Yank the last killed rectangle with its upper left corner at point (<code>yank-rectangle</code>).</p> <p><code>C-x r o</code><br> Insert blank space to fill the space of the region-rectangle (<code>open-rectangle</code>). This pushes the previous contents of the region-rectangle rightward.</p> <p><code>M-x clear-rectangle</code><br> Clear the region-rectangle by replacing its contents with spaces.</p> <p><code>M-x delete-whitespace-rectangle</code><br> Delete whitespace in each of the lines on the specified rectangle, starting from the left edge column of the rectangle.</p> <p><code>C-x r t string RET</code><br> Replace rectangle contents with string on each line. (<code>string-rectangle</code>).</p> <p><code>M-x string-insert-rectangle RET string RET</code><br> Insert string on each line of the rectangle.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload