• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

C# Function Seperator

I'm switching from VB.NET to C# as my primary development platform.

The one thing I miss is the line that separates the functions in the VB IDE.  I can't find any way to have this line displayed in C#, is there a way to do so?

Image Attached:


functions.gif
0
MCIM
Asked:
MCIM
2 Solutions
 
AndyAinscowCommented:
Just leave some blank lines eg.


void Foo()
{
}


void Bar()
{
}
0
 
xibecCommented:
me neither know. I use region for encapsulate functions.

like this:

#region ** tools ************************************************************************

private void sumSomething()
{
}
#endregion

0
 
AndyAinscowCommented:
ps.  As far as I know it doesn't exist as such in displaying C# files.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
Rose BabuSenior Team ManagerCommented:
Hi,

Why do you need the line separation on C# code? it is not necessary in your case.

By the way you are converting the application, you should worry about the code conversion only.

The line separator will come for VB applications NOT for C# application. and this will not make any error/issue on building/running application.

so just go-ahead on your code conversion and run the application successfully.

Happy Programming.

0
 
MCIMAuthor Commented:
Thanks for the responses.  

I want the line separation because I find it useful.  I'm not converting any applications, I just included the image as an example of what I was looking for.

I guess I'll try to create a code snippet to insert between functions, putting multiple blank lines will limit the amount of code that can be displayed on the screen - increasing the need to scroll.

I like the #region option as well.. thanks again!
0
 
AndyAinscowCommented:
You could also just do
//------------------------------------------------------------------------------------------------------------

the // makes it a comment and the rest of the line is ignored by the compiler.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now