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...)
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
for first variable choose:
"guess element type of collection repressented by Variable"
than for variable choose your $COLLECTION$ variable.
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
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...
>
>