Add ability to select code and automatically create a subroutine.
Often you write a block of code. After it works, you want to make a subroutine out of it so that you can use it elsewhere. It is quite tedious, and this could easily be automated. User would select the code and use a pull-down list to instruct the IDE to create a subroutine. The IDE would identify the variables that need to be passed, create the required subroutine, and insert the call in the code.
1
vote
1 comment
-
Philippe
commented
You can already do that (in C#). Contextual menu » Refactor » Extract method.