Search code examples
c#visual-studioadditionblank-line

How to add a blank lines in C# application developed in Visual Studio?


I want to add blank line between two lines.I have more code likes an example.

        errorStructObj = new ErrorStruct(0, ErrorStruct.errorMainType.ExceptionError, ErrorStruct.errorEventType.Non_Wcf, ErrorStruct.errorEnvironmentType.Database, ErrorStruct.errorOperationType.Asynchronous, ErrorStruct.messageShownEnvironment.ClientAlert, "EXCCE00004", "Hata! Hata Kodu : EXCCE000004");
        Program.errorStructFactoryNesne.AddErrorStructListeler(4, errorStructObj);
        errorStructObj = new ErrorStruct(0, ErrorStruct.errorMainType.ExceptionError, ErrorStruct.errorEventType.Non_Wcf, ErrorStruct.errorEnvironmentType.Database, ErrorStruct.errorOperationType.Asynchronous, ErrorStruct.messageShownEnvironment.ClientAlert, "EXCCE00005", "Hata! Hata Kodu : EXCCE000005");
        Program.errorStructFactoryNesne.AddErrorStructListeler(5, errorStructObj);
        errorStructObj = new ErrorStruct(0, ErrorStruct.errorMainType.ExceptionError, ErrorStruct.errorEventType.Non_Wcf, ErrorStruct.errorEnvironmentType.Database, ErrorStruct.errorOperationType.Asynchronous, ErrorStruct.messageShownEnvironment.ClientAlert, "EXCCE00006", "Hata! Hata Kodu : EXCCE000006");
        Program.errorStructFactoryNesne.AddErrorStructListeler(6, errorStructObj);

Solution

  • In VS press ctrl+shift+H in find options check the Use Regular expression in search term type \n and for replacement term type \n\n, pressing ctrl+A will replace all.