Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Group partial class shortcut

I have to cs file for one partial class. I know that I can modify project file to group them together like way that vs.net group *.aspx and *.aspx.cs, but is there a way to do that in vs.net IDE directly?

like image 890
Fred Yang Avatar asked Jun 03 '10 03:06

Fred Yang


People also ask

How do I create a partial class in Visual Studio?

Open Visual Studio from "Start" -> "All programs" -> "Microsoft Visual Studio". Then, go to "File" -> "New" -> "Project..." then select "Visual C#" -> "Windows" -> "Console application". Then, specify the name such as Partial class or whatever name you wish and the location of the project and click on the "OK" button.

What is partial class in MVC?

A partial class is one that can be split among multiple physical files. This feature came in C# 2.0. The partial class break the definition of class two or more than two class files, but it will be together at compile time as one class. Now here we will be using partial concept in MVC using entity framework.

What are the partial classes?

A partial class is a special feature of C#. It provides a special ability to implement the functionality of a single class into multiple files and all these files are combined into a single class file when the application is compiled. A partial class is created by using a partial keyword.


1 Answers

I believe this is the plugin you are looking for:

http://mokosh.co.uk/vscommands/

Works in VS 2008 and 2010.

like image 111
Mark Foreman Avatar answered Sep 20 '22 13:09

Mark Foreman