有没有办法在 Monodevelop Unity 上自动完成接口实现模板?
Is there a way to autocomplete interface implementation template on Monodevelop Unity?
假设我有一个接口:
public interface ISomeInterface
{
void Foo();
int Bar { get; }
}
在我的 class:
public class SomeClass : ISomeInterface
{
//Is there a way to automatically generate the below "templates"
//through pressing a button or a shortcut?
public void Foo()
{
}
public int Bar
{
get
{
}
}
}
通常我会把它打出来,但对于界面有点长的情况,如果我必须跨许多不同的 classes 来做,那就有点乏味了。
是的,只需右键单击 ISomeInterface
。
假设我有一个接口:
public interface ISomeInterface
{
void Foo();
int Bar { get; }
}
在我的 class:
public class SomeClass : ISomeInterface
{
//Is there a way to automatically generate the below "templates"
//through pressing a button or a shortcut?
public void Foo()
{
}
public int Bar
{
get
{
}
}
}
通常我会把它打出来,但对于界面有点长的情况,如果我必须跨许多不同的 classes 来做,那就有点乏味了。
是的,只需右键单击 ISomeInterface
。