9 ms·
How do you actually code effectively with a proportional font? Without a monospaced font, column cut, copy and paste operations are effectively eliminated (as
by jussij 14y ago
How do you actually code effectively with a proportional font?
Without a monospaced font, column cut, copy and paste operations are effectively eliminated (as nothing lines up vertically) and that is one of the programmer editing constructs I use the most.
I could not live without column editing.
- to3m 14y agoLack of column editing always drives me back to monospaced fonts in the end, too. I like the proportional look, but column operations ate just too convenient. (Perhaps I need to make an emacs keyboard shortcut to toggle font type at the press of a key. Then i could quickly switch to monospaced for my rectangular operations. That might work. Wouldn't help for Xcode or Visual Studio though.)
- ygra 14y agoI think it was Eclipse that switched to a Monospace font when entering column selection mode. While having a mode and not a quasi-mode for that operation is highly questionable to me, the automatic switch is a very nice touch. Especially to those who usually use a proportional font.
- Stratoscope 14y agoUltraEdit and UEStudio also do that. It takes care of the column selection problem nicely. Komodo doesn't switch automatically, but you can set up a keyboard shortcut to switch between monospaced and proportional fonts.
- Someone 14y agoI am very curious: where (programming language) and how do you use column editing? I must be missing out on some huge productivity booster, but I think having automatic code layout makes this feature as good as 100% superfluous.
- adamzochowski 14y agoColumn mode becomes helpful any time you have a few lines of code that look and operate very close to each other. For example https://github.com/torvalds/linux/blob/master/security/commoncap.c https://github.com/torvalds/linux/blob/master/security/commo... you are writing "cap_capget", you could write three lines, effective inheritable permitted And now, select in block mode the text you typed, click copy. Then select blank column to the right of any of the text, and type = cred->cap_ once you finished typing that (since you typed in block mode, it typed that across all 3 lines at once), now press your ctrl-v . and then type semicolon. Done. *effective = cred->cap_effective; *inheritable = cred->cap_inheritable; *permitted = cred->cap_permitted; Here is some quick example of how you could use column mode during programming. http://www.youtube.com/watch?v=yeYmPV3DpG8 http://www.youtube.com/watch?v=yeYmPV3DpG8
- sytelus 14y agoFor Visual Studio: http://joelabrahamsson.com/select-columns-of-text-in-visual-studio/ http://joelabrahamsson.com/select-columns-of-text-in-visual-...