所以,在Visual Studio中,如果您键入以下内容:
然后,如果您再次按下 TAB,它会生成:
当然,这非常有用。但我发现自己更经常需要这样的结构:
retryExecutor.Retrying +=
然后会弹出一个小提示框,说你可以按 TAB 键将其转换为如下形式:
retryExecutor.Retrying+= new EventHandler(retryExecutor_Retrying);
然后,如果您再次按下 TAB,它会生成:
void retryExecutor_Retrying(object sender, EventArgs e)
{
throw new NotImplementedException();
}
当然,这非常有用。但我发现自己更经常需要这样的结构:
retryExecutor.Retrying += (o, e) =>
{
};
那么,有没有任何方法可以添加新的快捷方式,或者至少更改按下 TAB 的功能?