Remove white space - empty lines - in editor
-
Yes, the option to remove blank lines doesn't usually exist.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
Answering questions is also a skill , especially without unasked / uncalled for preaching and other innuendos and insults. Have a swell day and do not quit your day job.
I all I did was answer your question. What the :elephant: did i do wrong?
Quote:
I am asking - is this normal in any decent editor NOT to have an option to remove "white space" in between lines of code?
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
WARNING Way off, in the left field, the coding subject - relax , I am NOT posting any coding questions... The attached code , which I could not post to show "visualize white space " setting contains plenty of white space. The editor has an option to "remove white space" , but only in actual line of code . which "auto indent" happily recreate... The "remove white space" DOES NOT remove empty lines... I am asking - is this normal in any decent editor NOT to have an option to remove "white space" in between lines of code? Or does such option exists and I have no idea what it would be called. { qDebug()<< "Current raw text " << resultClean; str= SubRegularExpressionExt("((\\w+)$)", resultClean,2 ); //TOK line qDebug()<< "Current extracted text ((\\w+)$)" << str; str= SubRegularExpressionExt("(\\w+)*", resultClean,2 ); //TOK line qDebug()<< "Current extracted text (\\w+)*" << str; str= SubRegularExpressionExt("(\\w+)", resultClean,2 ); //TOK line qDebug()<< "Current extracted text (\\w+)" << str; //"((\\w+)\\s*)*", str= SubRegularExpressionExt("((\\w+)\\s*)*", resultClean,2 ); //TOK line qDebug()<< "Current extracted text ((\\w+)\\s*)*" << str; }
First:
Member 14968771 wrote:
I am asking - is this normal in any decent editor NOT to have an option to remove "white space" in between lines of code?
being answered with
Yes, the option to remove blank lines doesn't usually exist.
is a direct, clear answer to your question, and certainly doesn't justify your reaction:
Answering questions is also a skill , especially without unasked / uncalled for preaching and other innuendos and insults.
I have no idea why you show this kind of reaction to a simple (and correct) answer to exactly what your were asking for. Then: To remove blank lines in Notepad++, I first delete all trailing spaces at end of lines (NP++ has a command for that). Then I replace two consecutive newlines with one newline. NP++ can handle both ISO standard, Mac and *nix newlines, and you have to specify the correct format for the search to match, and you have to select 'Search mode: Extended'. I guess that any editor that can match on newlines of various kinds can be used in a similar way to remove blank lines.
-
I all I did was answer your question. What the :elephant: did i do wrong?
Quote:
I am asking - is this normal in any decent editor NOT to have an option to remove "white space" in between lines of code?
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
14968771 often answers like that. Similarly gives instructions in his questions as to how you must answer.
Wow. The quality of the question directly dictates the quality of the answer.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
Wow. The quality of the question directly dictates the quality of the answer.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
:laugh:
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
First:
Member 14968771 wrote:
I am asking - is this normal in any decent editor NOT to have an option to remove "white space" in between lines of code?
being answered with
Yes, the option to remove blank lines doesn't usually exist.
is a direct, clear answer to your question, and certainly doesn't justify your reaction:
Answering questions is also a skill , especially without unasked / uncalled for preaching and other innuendos and insults.
I have no idea why you show this kind of reaction to a simple (and correct) answer to exactly what your were asking for. Then: To remove blank lines in Notepad++, I first delete all trailing spaces at end of lines (NP++ has a command for that). Then I replace two consecutive newlines with one newline. NP++ can handle both ISO standard, Mac and *nix newlines, and you have to specify the correct format for the search to match, and you have to select 'Search mode: Extended'. I guess that any editor that can match on newlines of various kinds can be used in a similar way to remove blank lines.
My guess is that Member 14968771 does not realise that what's below the horizontal line is simply Dave's signature. He's reading it as a personalised response to his question, misconstruing it entirely and taking it as a personal dig.
Telegraph marker posts ... nothing to do with IT Phasmid email discussion group ... also nothing to do with IT Beekeeping and honey site ... still nothing to do with IT
-
My guess is that Member 14968771 does not realise that what's below the horizontal line is simply Dave's signature. He's reading it as a personalised response to his question, misconstruing it entirely and taking it as a personal dig.
Telegraph marker posts ... nothing to do with IT Phasmid email discussion group ... also nothing to do with IT Beekeeping and honey site ... still nothing to do with IT
-
Yes, the option to remove blank lines doesn't usually exist.
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave KreskowiakYeah, "working as expected".