3 ms·
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 a
by Someone 14y ago
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.
- 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-...