|
Wait until a dead bird you drop on the floor doesn't sizzle.
“But I don't want to go among mad people,” Alice remarked.
“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”
“How do you know I'm mad?” said Alice.
“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll
|
|
|
|
|
I'm sorry. It's not a game unless it's available from somebody's App Store.
And if the bird sizzles, try it with a chicken. And spuds.
|
|
|
|
|
Some interesting facts:
1. Lava is hot (I assume you know that).
2. The most simple explanation without going into the world of physics is: Heat "goes" up.
With those two facts, if the floor is made of lava, you should not only touch the floor, but also prevent your legs and hands to be exposed to the heat above lava. I assume (since you are still alive), the chair is made of some heat isolation material that does not meld. So you sit there in the chair, the air around you heats up and your time is running out. In that moment you think about coffee - that's hilarious.
|
|
|
|
|
Visual Studio 2010 text edit mode has a toolbox which is completely empty - when you switch to design view it gets all the controls.
Try this: Highlight some text, and copy it to the clipboard.
Now right click the toolbox and select "Paste".
Put the carat in your source file, and double click the toolbox item that just got created.
Oooo! Boilerplate!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Nice little trick!
The signature is in building process.. Please wait...
|
|
|
|
|
Now that really is useful.
Veni, vidi, abiit domum
|
|
|
|
|
That's very cool, even if VS 2013 does give each paste the same name, "HTML Fragment," and force you to context-click and select "Edit Name" to edit their titles.
I note you can also add multiple new tabs to the ToolBox view in code-edit mode.
thanks for a great find !
“But I don't want to go among mad people,” Alice remarked.
“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”
“How do you know I'm mad?” said Alice.
“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll
|
|
|
|
|
You haven't been watching any coding related video's on Chennel 9, have you? They've been using that trick since it was implemented in VIsual Studio.
|
|
|
|
|
So, I'm a slow learner...9 years isn't bad!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
This has been a fairly common technique for doing coding sessions. Even faster when you assign keyboard shortcuts.
|
|
|
|
|
Thanks, Nish-ji,
I have just been searching for information on assigning a keyboard short-cut to a text-edit window saved ToolBox item without success. I can't find anything in VS's in Tools/Options/Environment/KeyBoard configuration Panel that looks relevant.
Appreciate a pointer to how to do this !
“But I don't want to go among mad people,” Alice remarked.
“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”
“How do you know I'm mad?” said Alice.
“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll
|
|
|
|
|
BillWoodruff wrote: -ji,
By any chance are you a fan of C. J. Cherryh's Foreigner[^] series of novels? That looks suspiciously like an atevi familiar form of address.
Yes, it's an Obscure Reference Friday™ .
Software Zen: delete this;
|
|
|
|
|
Hi Gary-ji,
No, I have not heard of Cherryh's work, but it sounds interesting; in Hindi, suffixing "ji" onto a first name is a kind of affectionate honorific, an expression of esteem for the one addressed, but perhaps less formal (?) than prefixing the name with "Sri."
It would be wonderful to find out after all these years I am using "ji" incorrectly, or inappropriately !
“But I don't want to go among mad people,” Alice remarked.
“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”
“How do you know I'm mad?” said Alice.
“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll
|
|
|
|
|
It sounds like she's copied the Hindi usage.
Software Zen: delete this;
|
|
|
|
|
So, OriginalGriff, create a basic function with a Try/Catch, copy it, paste it into the VS toolbox, rename it accordingly (I use 00_NewFunctTryCatch to cause it to show at the top of the list of Boilerplates, as you noted) then assign a keyboard shortcut, and off ya go!
I also have 00_TryCatch which only puts in a try catch.
Now, if you *REALLY* wanna beef up your entire computer, go get QuicKeys 3.0 for Windows at Startly.com[^] (I have no connection to this biz, other than I use their product).
I've used QuicKeys for 23+ of my programming years. QuicKeys works in Win7; haven't tried Win8, though.
Best damned macro/automation/keyboard shortcut tool/app there ever was and is.
Example: I had to change 6,500+ records through an archaic GUI, having no access to the SQL database. Took me 10 minutes to setup a "repeat" QuicKeys sequence (7 minutes testing/refining it...), fired it up, went on a 15 minute break, came back and all the records were updated. Saved about 2 hours of flustering manual repetitive keyboard data entry.
modified 6-Feb-14 12:32pm.
|
|
|
|
|
No, I didn't know you could do that. I suspect tomorrow I won't know either.
[Edit] - Apologies, that sounded flippant. Can't really see it being useful though.
Regards,
Rob Philpott.
|
|
|
|
|
I noticed today that you can drag-and-drop those "ersatz snippets." The advantage of drag-and-drop over double-clicking the ToolBox item seems to be that drag-and-drop doesn't offset the first line of a tabbed text block.
“But I don't want to go among mad people,” Alice remarked.
“Oh, you can't help that,” said the Cat: “we're all mad here. I'm mad. You're mad.”
“How do you know I'm mad?” said Alice.
“You must be," said the Cat, or you wouldn't have come here.” Lewis Carroll
|
|
|
|
|
Just read your post and improved my copy/paste mastery!
I have to say I saw someone used this feature a while ago in a video and I always wondered, ever since, what was going on!!
|
|
|
|
|
Write an article about it.
|
|
|
|
|
That's gonna be a very, very padded article!
Grief, I'd have to pad it out to get it up to a Tip!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Custom 'control' based on code snippet? Nice.
|
|
|
|
|
Thanks for your tip. It's useful...
|
|
|
|
|
Hey, that works in VS2008 too. Nice find!
|
|
|
|
|
Doesn't this 'feature' tend to promote 'Copy-Paste' programming?
|
|
|
|
|
[Go on work out the initials]
1806 – Battle of San Domingo: British naval victory against the French in the Caribbean.
What got me was the fact that not only did they lose [again], but they ran away [again] and in doing so ran aground[^] two ships.
Oh France, you must be proud!
speramus in juniperus
|
|
|
|