Click here to Skip to main content
15,502,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Remove white space - empty lines - in editor Pin
Member 1496877115-Aug-22 10:12
Member 1496877115-Aug-22 10:12 
GeneralRe: Remove white space - empty lines - in editor Pin
Dave Kreskowiak15-Aug-22 10:26
mveDave Kreskowiak15-Aug-22 10:26 
GeneralRe: Remove white space - empty lines - in editor Pin
Richard MacCutchan15-Aug-22 22:30
mveRichard MacCutchan15-Aug-22 22:30 
GeneralRe: Remove white space - empty lines - in editor Pin
Dave Kreskowiak16-Aug-22 4:47
mveDave Kreskowiak16-Aug-22 4:47 
GeneralRe: Remove white space - empty lines - in editor Pin
Richard MacCutchan16-Aug-22 4:54
mveRichard MacCutchan16-Aug-22 4:54 
GeneralRe: Remove white space - empty lines - in editor Pin
Dave Kreskowiak16-Aug-22 5:21
mveDave Kreskowiak16-Aug-22 5:21 
GeneralRe: Remove white space - empty lines - in editor Pin
PIEBALDconsult17-Aug-22 9:26
professionalPIEBALDconsult17-Aug-22 9:26 
AnswerRe: Remove white space - empty lines - in editor Pin
trønderen15-Aug-22 12:53
trønderen15-Aug-22 12:53 
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.
GeneralRe: Remove white space - empty lines - in editor Pin
DerekT-P17-Aug-22 0:19
professionalDerekT-P17-Aug-22 0:19 
GeneralRe: Remove white space - empty lines - in editor Pin
Richard MacCutchan17-Aug-22 1:18
mveRichard MacCutchan17-Aug-22 1:18 
Questionhow to resolve and understand how / why it works or not Pin
Member 1496877112-Aug-22 13:28
Member 1496877112-Aug-22 13:28 
AnswerRe: how to resolve and understand how / why it works or not Pin
Richard MacCutchan12-Aug-22 23:12
mveRichard MacCutchan12-Aug-22 23:12 
GeneralRe: how to resolve and understand how / why it works or not Pin
Member 1496877113-Aug-22 5:09
Member 1496877113-Aug-22 5:09 
GeneralRe: how to resolve and understand how / why it works or not Pin
Richard MacCutchan13-Aug-22 5:28
mveRichard MacCutchan13-Aug-22 5:28 
GeneralRe: how to resolve and understand how / why it works or not Pin
Member 1496877113-Aug-22 7:12
Member 1496877113-Aug-22 7:12 
GeneralRe: how to resolve and understand how / why it works or not Pin
Richard MacCutchan13-Aug-22 7:25
mveRichard MacCutchan13-Aug-22 7:25 
GeneralRe: how to resolve and understand how / why it works or not Pin
Member 1496877113-Aug-22 9:59
Member 1496877113-Aug-22 9:59 
Question#define won't work in QStringList , gives no error Pin
Member 1496877111-Aug-22 12:18
Member 1496877111-Aug-22 12:18 
AnswerRe: #define won't work in QStringList , gives no error Pin
Mircea Neacsu11-Aug-22 12:57
mvaMircea Neacsu11-Aug-22 12:57 
GeneralRe: #define won't work in QStringList , gives no error Pin
Member 1496877111-Aug-22 17:43
Member 1496877111-Aug-22 17:43 
GeneralRe: #define won't work in QStringList , gives no error Pin
David Crow11-Aug-22 17:03
David Crow11-Aug-22 17:03 
Questionmanaging objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 4:29
Calin Negru10-Aug-22 4:29 
AnswerRe: managing objects derived from the same base class using a container Pin
Mircea Neacsu10-Aug-22 4:55
mvaMircea Neacsu10-Aug-22 4:55 
AnswerRe: managing objects derived from the same base class using a container Pin
Greg Utas10-Aug-22 4:56
mveGreg Utas10-Aug-22 4:56 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Negru10-Aug-22 7:34
Calin Negru10-Aug-22 7:34 

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.