News for hackers. Stuff that matters.
Re:Collection of the best fonts for programming by jussij on Sunday April 28, 2013 @07:56PM (#5623383)
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.

Re:Collection of the best fonts for programming by to3m on Sunday April 28, 2013 @09:34PM (#5623643)
Lack 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.)

Re:Collection of the best fonts for programming by ygra on Monday April 29, 2013 @02:32AM (#5624411)
I 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.
Re:Collection of the best fonts for programming by Stratoscope on Monday April 29, 2013 @07:24AM (#5625412)
UltraEdit 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.

Re:Collection of the best fonts for programming by Someone on Monday April 29, 2013 @01:50PM (#5627642)
I 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.
Re:Collection of the best fonts for programming by adamzochowski on Monday April 29, 2013 @04:40PM (#5628570)
Column 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/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

Re:Collection of the best fonts for programming by sytelus on Monday April 29, 2013 @10:36PM (#5630137)