The Move or Delete Parameter refactoring allows you to quickly change the parameter's position or remove it from the method's signature.
Supported: C#, VB.NET
Not relevant: ASP.NET, XAML, HTML
To move or delete a parameter
- Position the caret over the parameter you want to move or delete.
Press Alt+Insert. From the pop-up menu, select Move Or Delete Parameter...
Press Tab to change the parameter position or Delete to delete the parameter and finish the operation.
- Press Enter to move the parameter and finish the operation or Esc to abort the operation.
When you move or delete a parameter, JustCode also modifies the existing method calls. For more explanations on this see the examples below.
If you move or delete a parameter from a method that implements or overrides another method, JustCode also modifies the base method. For more explanations on this see the examples below.
To move or delete a parameter you can also navigate on the main menu. Choose JustCode | Refactor | Move Or Delete Parameter..., or just press Ctrl+R, Ctrl+S