I am using viemu in VS 2010. Is there a reliable command to delete an entire method in C# source code?
Here are things I have tried:
The movement commands
}and]]are not smart enough to pick out a method. Although at times they do happen to grab the correct amount of text.From just within the method i can do
diBwhich will delete the entire body of the method. That's not too bad, but then I'm left to delete the signature and outer brackets.If I move the cursor to the visibility modifier (ie
public,private, etc) then dod*, it will kill the entire method if the next method has the same visibility.
Any vi/viemu experts have a way to do this?