Create function call parameters

Once i used one cool feature of Resharper as - semiautomatic creation of
variables for function call. I mean Resharper suggest me create a variable
for function call when i typed function call signature and press
ctrlaltspace i think.
But it happened only once, i can't reproduce such behaviour. Tell me how to
do that, or was it just a dream?


4 comments
Comment actions Permalink

I could not understand what you meant as 'creation of variables for function
call'. Could you please illustrate this with a small example?

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Once i used one cool feature of Resharper as - semiautomatic creation
of
variables for function call. I mean Resharper suggest me create a
variable
for function call when i typed function call signature and press
ctrlaltspace i think.
But it happened only once, i can't reproduce such behaviour. Tell me
how to
do that, or was it just a dream?



0
Comment actions Permalink

F.e.

i type Math.Abs(), i press f.e. ctrl+enter, resharper shows me drop
down list with some variants. One of them is - "create variable", i select
it, and resharper generate code:

sbyte value;

Math.Abs(value);

(sbyte value is the variable parameter declared in Math.Abs body)

"Valentin Kipiatkov (JetBrains)" <valentin@jetbrains.com> wrote in message
news:3fdb29a69b32d8c7ca1f0ad00e1f@news.intellij.net...

I could not understand what you meant as 'creation of variables for

function

call'. Could you please illustrate this with a small example?

>

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>

Once i used one cool feature of Resharper as - semiautomatic creation
of
variables for function call. I mean Resharper suggest me create a
variable
for function call when i typed function call signature and press
ctrlaltspace i think.
But it happened only once, i can't reproduce such behaviour. Tell me
how to
do that, or was it just a dream?

>
>


0
Comment actions Permalink

Hello Igor,

This feature works only for "out" parameters.

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

F.e.

i type Math.Abs(), i press f.e. ctrl+enter, resharper shows me
drop down list with some variants. One of them is - "create variable",
i select it, and resharper generate code:

sbyte value;

Math.Abs(value);

(sbyte value is the variable parameter declared in Math.Abs body)

"Valentin Kipiatkov (JetBrains)" <valentin@jetbrains.com> wrote in
message news:3fdb29a69b32d8c7ca1f0ad00e1f@news.intellij.net...

>> I could not understand what you meant as 'creation of variables for
>>

function

>> call'. Could you please illustrate this with a small example?
>>
>> Valentin Kipiatkov
>> Chief Scientist, Vice President of Product Development
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> Once i used one cool feature of Resharper as - semiautomatic
>>> creation
>>> of
>>> variables for function call. I mean Resharper suggest me create a
>>> variable
>>> for function call when i typed function call signature and press
>>> ctrlaltspace i think.
>>> But it happened only once, i can't reproduce such behaviour. Tell me
>>> how to
>>> do that, or was it just a dream?


0
Comment actions Permalink

Thank you very much.


"Oleg Stepanov (JetBrains)" <Oleg.Stepanov@JetBrains.Com> wrote in message
news:55e77416414b918c7cb009c257630@news.intellij.net...

Hello Igor,

>

This feature works only for "out" parameters.

>

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>

F.e.

>

i type Math.Abs(), i press f.e. ctrl+enter, resharper shows me
drop down list with some variants. One of them is - "create variable",
i select it, and resharper generate code:

>

sbyte value;

>

Math.Abs(value);

>

(sbyte value is the variable parameter declared in Math.Abs body)

>

"Valentin Kipiatkov (JetBrains)" <valentin@jetbrains.com> wrote in
message news:3fdb29a69b32d8c7ca1f0ad00e1f@news.intellij.net...

>
>> I could not understand what you meant as 'creation of variables for
>>

function

>
>> call'. Could you please illustrate this with a small example?
>>
>> Valentin Kipiatkov
>> Chief Scientist, Vice President of Product Development
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> Once i used one cool feature of Resharper as - semiautomatic
>>> creation
>>> of
>>> variables for function call. I mean Resharper suggest me create a
>>> variable
>>> for function call when i typed function call signature and press
>>> ctrlaltspace i think.
>>> But it happened only once, i can't reproduce such behaviour. Tell me
>>> how to
>>> do that, or was it just a dream?

>
>


0

Please sign in to leave a comment.