Can not recreate foreach template

how to make the 3'rd variable be evaluated first...

for me the first always gets evaluated first...

4 comments
Comment actions Permalink

how to make the 3'rd variable be evaluated first...

for me the first always gets evaluated first...


for first variable choose:
"guess element type of collection repressented by Variable"
than for variable choose your $COLLECTION$ variable.

0
Comment actions Permalink

Does not work.

I even tried this:

Select "foreach" template
- (foreach work correctly)
Copy template to "foreach2"
- (foreach2 work correctly)
Edit "foreach2" and change $VARIABLE$ macro to no value and then back to suggest name for variable (so I did no real change)
- (foreach2 stops working correctly)


The problem is that instead of asking
$COLLECTION$ -> $TYPE$ -> $VARIABLE$
it asks
$TYPE$ -> $VARIABLE$ -> $COLLECTION$

I want it to work like the read foreach (so I can create my own stuff...)

sure it still kind of works but not perfect...


0
Comment actions Permalink

Does not work.

I even tried this:

Select "foreach" template
- (foreach work correctly)
Copy template to "foreach2"
- (foreach2 work correctly)
Edit "foreach2" and change $VARIABLE$ macro to no value and then back to suggest name for variable (so I did no real change)
- (foreach2 stops working correctly)


The problem is that instead of asking
$COLLECTION$ -> $TYPE$ -> $VARIABLE$
it asks
$TYPE$ -> $VARIABLE$ -> $COLLECTION$

I want it to work like the read foreach (so I can create my own stuff...)

sure it still kind of works but not perfect...


I see..
as a workaround, open your usersettings.xml file and rearange xml nodes in order you like them to be called:
in your case:
]]>\Application Data\JetBrains\ReSharper

where YOUR_USER_NAME is your user name, and you have to close VS first, rearange it, and then reopen VS

hth

0
Comment actions Permalink

This is known problem - we haven't added functionality for ordering
variables yet. It will be available in the next build.

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

"Kaj Wiklund" <no_mail@jetbrains.com> wrote in message
news:13592983.1084561570705.JavaMail.itn@is.intellij.net...

how to make the 3'rd variable be evaluated first...

>

for me the first always gets evaluated first...

>


0

Please sign in to leave a comment.