Does anyone know if there is a command to remove extra whitespace(blank lines) when coding?
Printable View
Does anyone know if there is a command to remove extra whitespace(blank lines) when coding?
You mean in your source code presumably?
If so - not that i'm aware of
No command that I know of as well, but I do know of the DELETE and BACKSPACE keys.
Yeah I know that one too:rolleyes:, hoping there was an easier way, especially when there are a ot of blank lines :D
Well ultimately your source code is just text files so there's nothing much to stop you writing a tool which runs through the text files and strips empty lines.
Will look into that.
I think keystone meant you can just copy your code to a txt, run some script through it to delete the empty spaces, then copy it back into your program. Maybe you understood that but there's not much to "look into" and it would be a lot harder if you tried to do it some other way.
Why not edit the vb files directly? They're just text files, no need to copy the text to a separate txt file at all.
Just run through those vb files line by line, see if line.Trim <> String.Empty, and if so, append that line to a string. At the end of the loop, you save that string as the new vb file, done.