Split decleration and assignment and put decleration at the top
Hi,
It's nice if an option is added to place all the variables declared in a method to the top of it and leave value assignment at the same place. Here's an example:
public void SampleMethod()
{
int i;
i = 25;
...
string s = "sample text";
...
}
to:
public void SampleMethod()
{
int i;
string s;
i = 25;
...
s = "sample text";
...
}
This is sort of supported by "Split decleration and assignment", but adding another option like what I described is super.
Thanks
Please sign in to leave a comment.