Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I suggest "Generate method stub" where to store new generated code in Visual C#?

I'm using Microsoft Visual C# 2010.

I have one class in two files:

file1.cs

partial class SomeClass {
    // something
}

file2.cs

partial class SomeClass {
    // something else
}

Now, in some third place in project, when I write "SomeClass.SomeMethod()" and press Alt+Shift+F10, and pick "generate method stub..." it always creates code in file1.cs.

My question is: Is it possible to give directive to do it in file2.cs, and how?

like image 573
MirrorImage82 Avatar asked Dec 16 '13 12:12

MirrorImage82


1 Answers

You can use the Resharper function for it. (you can install it via the extension manager)

like image 137
real_yggdrasil Avatar answered Sep 18 '22 15:09

real_yggdrasil