Click here to Skip to main content
15,896,527 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Productivity Killer of the Day Pin
jackbrownii16-May-18 8:41
professionaljackbrownii16-May-18 8:41 
GeneralRe: Productivity Killer of the Day Pin
David O'Neil16-May-18 8:49
professionalDavid O'Neil16-May-18 8:49 
GeneralRe: Productivity Killer of the Day Pin
PIEBALDconsult16-May-18 9:51
mvePIEBALDconsult16-May-18 9:51 
GeneralRe: Productivity Killer of the Day Pin
Rick York16-May-18 10:06
mveRick York16-May-18 10:06 
QuestionRe: Productivity Killer of the Day Pin
Eddy Vluggen16-May-18 11:50
professionalEddy Vluggen16-May-18 11:50 
GeneralRe: Productivity Killer of the Day Pin
d_c_allison16-May-18 13:00
d_c_allison16-May-18 13:00 
GeneralRe: Productivity Killer of the Day Pin
Pete O'Hanlon16-May-18 22:04
mvePete O'Hanlon16-May-18 22:04 
GeneralRe: Productivity Killer of the Day Pin
kalberts17-May-18 1:09
kalberts17-May-18 1:09 
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.
GeneralRe: Productivity Killer of the Day Pin
Pete O'Hanlon17-May-18 1:18
mvePete O'Hanlon17-May-18 1:18 
GeneralRe: Productivity Killer of the Day Pin
PIEBALDconsult16-May-18 15:39
mvePIEBALDconsult16-May-18 15:39 
GeneralRe: Productivity Killer of the Day Pin
Jacquers16-May-18 20:44
Jacquers16-May-18 20:44 
GeneralRe: Productivity Killer of the Day Pin
kalberts17-May-18 0:41
kalberts17-May-18 0:41 
GeneralRe: Productivity Killer of the Day Pin
Dan Neely17-May-18 2:48
Dan Neely17-May-18 2:48 
GeneralRe: Productivity Killer of the Day Pin
Rage17-May-18 8:42
professionalRage17-May-18 8:42 
GeneralElephant TFS. Pin
R. Giskard Reventlov16-May-18 5:32
R. Giskard Reventlov16-May-18 5:32 
GeneralRe: Elephant TFS. Pin
Ravi Bhavnani16-May-18 5:50
professionalRavi Bhavnani16-May-18 5:50 
GeneralRe: Elephant TFS. Pin
R. Giskard Reventlov16-May-18 5:52
R. Giskard Reventlov16-May-18 5:52 
GeneralRe: Elephant TFS. Pin
Joan M16-May-18 6:25
professionalJoan M16-May-18 6:25 
GeneralRe: Elephant TFS. Pin
PIEBALDconsult16-May-18 10:02
mvePIEBALDconsult16-May-18 10:02 
GeneralRe: Elephant TFS. Pin
R. Giskard Reventlov16-May-18 10:23
R. Giskard Reventlov16-May-18 10:23 
GeneralRe: Elephant TFS. Pin
Nathan Minier17-May-18 1:14
professionalNathan Minier17-May-18 1:14 
RantElephant. Phones Pin
Marc Clifton16-May-18 5:01
mvaMarc Clifton16-May-18 5:01 
GeneralRe: Elephant. Phones Pin
OriginalGriff16-May-18 5:08
mveOriginalGriff16-May-18 5:08 
GeneralRe: Elephant. Phones Pin
Dave Kreskowiak16-May-18 5:58
mveDave Kreskowiak16-May-18 5:58 
GeneralRe: Elephant. Phones Pin
dandy7216-May-18 6:24
dandy7216-May-18 6:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.