3 ms·
I'd love to see a text editor that let you select text blocks by drawing a box. (ie, you could draw the box selection style and select the last 5 characters of
by jsz0 16y ago
I'd love to see a text editor that let you select text blocks by drawing a box. (ie, you could draw the box selection style and select the last 5 characters of each line)
- logicalmind 16y agoYou can do this in visual studio if you hold down the alt key and do your selection.
- gmurphy 16y agoTextpad does this.
- albemuth 16y agoTextmate and Vim as well
- edanm 16y agoAre you talking about "column selection mode"? It exists in several editors, SlickEdit for example, and lets you select "boxes" (or columns) of characters. My favorite editor nowadays is Sublime Text, which takes this concept much, much further. It allows having several cursors active at once, each one behaving like a real cursor, so you can do things like ctrl+right to move all the cursors to the next word, no matter the length of each specific word. Kinda like real-time macros, only much better.
- deleted 16y ago[deleted]
- Naga 16y agoEmacs can do this!
- pjscott 16y agoSpecifically, you set the mark at one corner (C-Space) and move the mark to the other corner. Then you can do rectangle editing with commands like kill (C-x r k), yank (C-x r y) or something to insert a string (C-x r t). These are hugely useful when moving blocks of Python code around, for fiddling with the indentation.
- 1amzave 16y agoMany OS X text fields have built-in support this -- hold option and drag for rectangular selection. (And as someone else already noted, emacs of course can do this, albeit with a somewhat different UI mechanism -- see M-x apropos rectangle.)
- ydant 16y agoTo add to the list, Notepad++ (hold down alt and click+drag, I believe) does this, as does Eclipse (although it's annoying to enable in Eclipse (shift+alt+a to toggle it on, then block select, then toggle it off). It also only seems to work on some file types (e.g. .java, but not .xml) in Eclipse.
- jsz0 16y agoThanks for the suggestions. No more importing text into a spreadsheet, splitting into columns, and copy/pasting it back to a text editor for me.