|
Ctrl-H, "; "
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Maybe paste the code into a text-editor that allows you to search using regular expressions (i.e., Notepad++) and search using "^.+\s$"?
|
|
|
|
|
You can do regex searches in Visual Studio.
This space for rent
|
|
|
|
|
But... regex???
Do you do regex searches for "myvar" as well? A space followed by a newline is just as literal as "myvavar"; you don't need regex for either. The editor probably requires some sort of quoting or escaping for the newline, but quoting is just an external syntax required by the input scanner.
Every now and then I replace <space><newline> with <newline> throughout the source files of the solution, in one single sweep.
Well, sometimes in two or three, maybe even more: Every now and then I manage to create empty lines with spaces up to the indentiation of the neighbour lines. So I often start out with <4 spaces><newline> and click "Replace all in entire solution" until "0 replacements made". Then I change <4 spaces> to <space> and click the button up to three times more. You might say that clicking the same button up to three times in a row imposes such a strain on your index finger that you prefer to save effort by writing a regexp to do the equivalent. I'll bet that executing the regexp would slow down the replacement so that it would take more time to complete than my quick button clicks, even without conting the time for writing the regex and ensuring that it works as intended.
|
|
|
|
|
You're replying to the wrong person. I'm merely pointing out that you don't need to copy things outside the editor to run a regex.
This space for rent
|
|
|
|
|
For me, it's having CP ask me how I want to paste whenever I paste -- and then assuming the wrong default, which adds insult to injury.
|
|
|
|
|
If it's in VS then maybe something like CodeMaid can help by formatting / cleaning code.
|
|
|
|
|
Alternative approach: Switch programming language. Start using Whitespace.
|
|
|
|
|
Dunno if it's baked in or an addon I'm using, but the auto-format that runs when I delete/replace the closing } at the end of a file eats end of line white space.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
|
Need I say more?
Keep your friends close. Keep Kill your enemies closer.
The End
|
|
|
|
|
What's the problem?
/ravi
|
|
|
|
|
TFS
Keep your friends close. Keep Kill your enemies closer.
The End
|
|
|
|
|
it!
|
|
|
|
|
You don't like The Finest System?
|
|
|
|
|
😱
Keep your friends close. Keep Kill your enemies closer.
The End
|
|
|
|
|
Little bit. As I've been working more with using it as a planning tool, I actually like it better.
I know.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
I don't know whether to hit the joke or the rant icon. Or both.
I can't even make a phone call from the phone at my desk. After smashing some buttons, the phone is "booting." I kid you not. It's a VOIP, currently doing a DHCP lookup or whatever. Now it's doing HTTP calls. There's a screen showing what it's doing...still not working....
|
|
|
|
|
Ah, the Internet of Elephanting Things.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wait, how did we get from phones to internet connected sex toys?
|
|
|
|
|
Dave Kreskowiak wrote: Wait, how did we get from phones to internet connected sex toys?
Well, most have a vibrate mode. Or so I've been reminded by some lady-friends.
More details than that, and we'll need to move this to the soapbox.
|
|
|
|
|
Did you try rebooting it?
My VOIP regularly irritates me by rebooting and losing certain settings.
"Go forth into the source" - Neal Morse
|
|
|
|
|
Quote: Listen kid, you paid for the call
You ain't bad but I've heard it all before
Don't call us, we'll call you
|
|
|
|
|
That is so interesting.
I had to make a call today. I picked up my desk phone (IP phone) and began dialing.
I had pressed 3 or 4 numbers and it wasn't doing anything.
I said (out loud to myself) "Can you not just dial a number on this thing? How do I dial a number?"
Suddenly, all the digits appeared on the screen and then I could hear the next numbers begin making number-pressing sounds.
It's all junk!
Say all you want about our old rotary phones. They worked. Yes, 8s, 9s, and 0s were a pain to wait for while the rotary spun back around, but they worked.
|
|
|
|
|
They even worked when the power was out too. I'm just old enough to remember the house having one.
|
|
|
|