Extract Type
I'm having a tough time getting the Extract Type menu option to get enabled. Can you please detail how this is supposed to work?
--
Matt Berther
http://www.mattberther.com
Please sign in to leave a comment.
I'm having a tough time getting the Extract Type menu option to get enabled. Can you please detail how this is supposed to work?
--
Matt Berther
http://www.mattberther.com
Please sign in to leave a comment.
You should position the caret at the name of a class and this class should
be not the only top-level class declared in the file.
--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Matt Berther" <mberther@hotmail.com> wrote in message
news:caqfgk$sop$1@is.intellij.net...
enabled. Can you please detail how this is supposed to work?
>
Hello Valentin,
Thanks for the clarification. I confused this with extracting methods into a separate class. Will this type of functionality be offered by Resharper?
>> I'm having a tough time getting the Extract Type menu option to get
>>
>> --
>> Matt Berther
>> http://www.mattberther.com
--
--
Matt Berther
http://www.mattberther.com
What do you mean by extracting methods into a separate class? Please
explain.
--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Matt Berther" <mberther@hotmail.com> wrote in message
news:casej4$gbn$1@is.intellij.net...
>
a separate class. Will this type of functionality be offered by Resharper?
>
>
Hello Valentin,
public class Foo
{
public void Method1()
{
...
}
public void Method2()
{
...
}
public void Method3()
{
...
}
}
Lets say that Method1 and Method2 were not really appropriate to class Foo. What I was expecting Extract Type to do was to let me highlight Method1 and Method2 and move them into a separate class.
>> Hello Valentin,
>>
>> Thanks for the clarification. I confused this with extracting methods
>> into
>>
>>> You should position the caret at the name of a class and this class
>>> should be not the only top-level class declared in the file.
>>>
>>> "Matt Berther" <mberther@hotmail.com> wrote in message
>>> news:caqfgk$sop$1@is.intellij.net...
>>>
>>>> I'm having a tough time getting the Extract Type menu option to get
>>>>
>>> enabled. Can you please detail how this is supposed to work?
>>>
>>>> --
>>>> Matt Berther
>>>> http://www.mattberther.com
>> --
>>
>> --
>> Matt Berther
>> http://www.mattberther.com
--
--
Matt Berther
http://www.mattberther.com
I see. Anyway we'll probably drop separate menu item for moving type to
separate file and merge it with Move Type.
--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Matt Berther" <mberther@hotmail.com> wrote in message
news:casgmi$vq6$1@is.intellij.net...
>
>
>
>
Foo. What I was expecting Extract Type to do was to let me highlight Method1
and Method2 and move them into a separate class.
>
>