In Vim, this is how I do it. I'm not sure if viemu is compatible enough, but:
- Skip to the beginning of the method declaration (accessibility modifier, etc.).
- Click vto enter visual mode.
- Place the cursor over the brace that launches the body of the method.
- Press %to move the cursor to the corresponding bracket.
- Click dto delete everything that is selected.
This is not a super duper with automatic mode or something else, but it works and is relatively easy to do as soon as the muscle memory strikes.
source
share