Context Action to generate a for loop from list ignores live template

Hi all,

When I generate a for loop from a list, every time it generates it where the iterator is a var, instead of an int. However, my live template is set so it should be an int. How can I change this? Is this a bug?

Thanks!

Autogenerated for loop, with var:

Live template:

Code style settings:

1
4 comments

Hello Isabella,

Could you please clarify your Rider version? Also, please share all .DotSettings files via the service https://uploads.jetbrains.com/ and let me know the exact uploaded file name.

All DotSettings files can be around as described below:
- Personal layer: .DotSettings.user file is near your sln (if any)
- Team-shared layer: ```.DotSettings``` file near your sln (if any)
- Global settings layer: Use "Help -> Browse Special Files and Folders -> R# Global Settings" to locate ```GlobalSettingsStorage.DotSettings``` file

0
Avatar
Permanently deleted user

Thanks Sofia!

Rider version: 2019.2.4 (I've just realised I wasn't being auto-updated to latest, so will try 2020.1.3!)

Upload link: 2020_06_28_PFsUpirhZ7i9Y8TT

0
Avatar
Permanently deleted user

2020.1.3 still has the same issue.

0

Hi Isabella,

The first thing I noticed is that the settings files are broken (there are several opening tags are absent). You can check it by trying to import them to Rider. Could you please clarify if you changed them somehow manually?
I've corrected them and imported them to RIDER. But there was var in the "for" live template. If I change it the way you want (change var to int), it will work as expected and insert int. 

It seems that the changes just do not save. Could you please try to back up all those files and make the setting from scratch, then save it to a "this computer layer"? Can it help?

0

Please sign in to leave a comment.