|
Because some(many) times the "blank" lines have extra spaces or tabs in them. Delete will only get rid of one of the characters. ctrl-x eliminates the whole line. And I think these faux-blank lines still count as blank as far as this option is concerned.
Also: since this is usually in the midst of moving code, my hand is already over the ctrl-x keys.
|
|
|
|
|
In VS I prefer to use [Ctrl]+[Shift]+[L] to remove empty lines. That way I don't lose what's in the clipboard. It normally happens when I decide to move chunks of code around by cutting what I want to keep, removing all lines to clean up, then going to the new location and pasting. That way I don't have to scroll around or remember where to clean up again.
My plan is to live forever ... so far so good
|
|
|
|
|
If you think about the vast number of options in VS (in Tools => options), and wonder why and WTF a lot of them do, then ya, it makes you think "Why MS, why?"
But what really bugs the piss outta me is when menu & shortcut options change from one version of VS to another.
If it's not broken, fix it until it is
|
|
|
|
|
That is the second setting I change when installing a new copy of any version of VS.
My plan is to live forever ... so far so good
|
|
|
|
|
Did you ever try Ctrl+Shift+V after that? Twice
Banking establishments are more dangerous than standing armies. T.Jefferson
|
|
|
|
|
Nope, never heard of that one!
There are times, Microsoft...and inventing a cure for a problem you cause without actually curing the problem...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
It really does wonders to paste what you intended originally. I never heard about this combination myself until my colleague has told me about it when I was grumbling pretty much like you about empty line copied to clipboard instead of pasting
Banking establishments are more dangerous than standing armies. T.Jefferson
|
|
|
|
|
Why? Retentive code reviews.
|
|
|
|
|
I know well the annoyance when I too miss the "v" key and press the "c" key instead. Indeed, WTF were they thinking!?!
I started using BRIEF (Basic Reconfigurable Interactive Editing Facility) in the late 80's and it's keyboard shortcuts have stuck with me ever since.
Cut-Copy-Paste are such fundamental operations they demand a single key all their own; none of this rubbish multi-finger pinky-x, pinky-c, and pink-v!
Insert ==> Edit|Paste <br />
Keypad + ==> Edit|Copy <br />
Keypad - ==> Edit|Cut
Simple, intuitive, and since I do far more copying than cutting, they used the enlarged "+" key on the numeric keypad to give your finger an ample target.
Brief was (is) a brilliant editor and it's ideas have stood the test of time IMNSHO.
Cheers,
Mike Fidler
"I intend to live forever - so far, so good." Steven Wright
"I almost had a psychic girlfriend but she left me before we met." Also Steven Wright
|
|
|
|
|
And it had multiple source "windows", and mouse support, and...
I loved it to death - for the first time, you could look at several parts of your code at the same time (Microsoft, are you listening?)
I think I still have the original disks and manual in the spare room - but they'll be on 360K floppies (possibly 720, I can't remember) and I don't have anything to read them any more!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: (Microsoft, are you listening?)
No
My plan is to live forever ... so far so good
|
|
|
|
|
http://www.briefeditor.com/download.htm[^]
Free.
Cheers,
Mike Fidler
"I intend to live forever - so far, so good." Steven Wright
"I almost had a psychic girlfriend but she left me before we met." Also Steven Wright
|
|
|
|
|
Get thee behind me, Satan!
I've got too used to Intellisense, and I'm trying not to install too much old stuff - I still have QuickC for DOS installed, and had to force myself not to install Ami Pro '97 on this PC (because it was a much, much better work processor than Word is, even now...)
Nooooo.....I won't do it....I won't....I'll just download it in case I need it later, honest....
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I loved B.R.I.E.F. It was made my Underware Software (seriously).
The thing I really miss about the old editors was that they could edit HUGE files that would not fit into all available memory. I needed that just yesterday! Notepad refused to load a 1.9gig text file on a 64bit OS with 4gigs of free memory!
BRIEF had a great macro language as well. I wrote a macro to provide popup context menus for the different C structs <-> DB mappings we used on a series of projects. It was like intellisense 0.1. Somewhere along the way, they converted the macro language from a LISP-like prefix syntax to more of a C syntax.
Then the IDEs started coming out and eclipsed* the single purpose editors...
*bad pun
|
|
|
|
|
TextPad ...
|
|
|
|
|
TextPad failed on a 15Gig file with 5.9Gigs of available memory.
It was worth a try! Thanks for the suggestion.
"The file size exceeds the limit allowed and cannot be saved."
I don't really need an editor for these large files, just a viewer!
I found some other suggestions I will try.
|
|
|
|
|
LOL, you're right! I just turned it off. I've always wondered about that one, been bitten several times. Thanks for the tip!
|
|
|
|
|
|
VS 6.0 had the much more useful option: Enable copy without selection. One of the first things I did after each installation was switching off this option. This way I was protected from almost all accidental copying.
I was quite mad when I discovered they changed the option to only apply to empty lines in later versions. I don't even bother to change the setting nowadays, because most of the time when I want to paste, the cursor is on a non-empty line making the option worthless to me.
The good thing about pessimism is, that you are always either right or pleasently surprised.
|
|
|
|
|
When using line copy paste, the contents are inserted on the line above regardless of your cursor position. This makes it a simple way to move a line.
|
|
|
|
|
+5 Thanks, I missed that. And yes, Why, Micrpsoft? Why?
Gus Gustafson
|
|
|
|
|
OriginalGriff wrote: Why, Microsoft? Why?
I've been observing that for decades. I've concluded that its part of a secret Programmer Works Initiative campaign they're running. They make poor design choices and poor choices of defaults simply to keep more of us employed. Its working. Thanks Microsoft.
This is a joke. This is only a joke. Had this been a serious posting...
We can program with only 1's, but if all you've got are zeros, you've got nothing.
|
|
|
|
|
I regularly use cut without a selection as the most convenient way to delete a line, blank or not. It's faster than selecting and deleting. Copy less so (on a blank line) but it's consistent with cut. I use copy on non blank lines a lot though.
As for the Shift+insert etc keys, I believe their longevity is linked to their utility for left handers (use the left hand for the mouse). Despite using them back in the DOS days, I really burnt their use in to my brain when I had to swap my mouse hand.
|
|
|
|
|
Probably it used to work that way by oversight back in v1 or something. They figured out it was dumb but were afraid of upsetting users by changing existing functionality (something they've gotten over ), hence the option being added to turn it off. Of course the default is on so no one used to the old behaviour complains.
Can't really see why it's useful myself, but backwards compatibility and options for all the things used to be MS' forte.
|
|
|
|
|
Obviously, it's that way so that noobs can more efficiently spam copy/pasta. Formatting is preserved so to facilitate finding and editing the magic numbers.
|
|
|
|