简体   繁体   English

如何在Visual Studio中开发的C#应用​​程序中添加空白行?

[英]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);

在VS中,在查找选项中按ctrl+shift+H选中搜索项类型\\nUse Regular expression ,对于替换项类型\\n\\n ,按ctrl+A将替换全部。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从Visual Studio中开发的Android C#应用程序访问SoftLayer对象存储。 - How do I access SoftLayer object storage from a C# application for Android, developed in Visual Studio. 我可以将在Visual Studio 2012中开发的C#Windows应用程序作为便携式应用程序制作吗? - Can I make an application made as a C# Windows Application developed in Visual Studio 2012 as a portable application? 我用C#开发了一个应用程序,是否可以在没有SQL Server和Visual Studio的另一台PC上运行该应用程序 - I developed an application in C#, is it possible to run this application on another PC which has no SQL Server and Visual Studio 如何在Visual Studio 2010中向C#Web应用程序添加计时器 - How to add a timer to c# Web Application in Visual studio 2010 确定开发了旧C#项目的Visual Studio版本 - Determining which version of Visual Studio an old C# project was developed 如何在C#Windows应用程序中的Crystal Report中删除空白行 - How to remove blank lines in Crystal Report in c# Windows application 使用Visual Basic和C#开发的应用程序的AST生成 - AST generation for a an application developed both in visual basic and c# 如何在Visual Studio C#中添加名称空间 - how to add namespaces in in visual studio c# 如何在visual studio中的c#文件中为所有行设置断点? - How to set breakpoints to all lines in a c# file in visual studio? Visual Studio C#自动换行 - Visual Studio C# auto new lines
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM