Resharper multiple property generation

折月煮酒 提交于 2020-01-02 04:24:16

问题


This might be a lazy request, but is there a way to generate multiple class properties at the same time? Currently, I have a large list of undefined properties and I can simply go through the list, one by one, and generate a property - but it would be ideal to highlight them all and generate one for each, example illustration below...

You can see here that prop1, prop2...etc have errors since the properties don't yet exist, but you can generate a property with resharper...

However, this seems to be one-at-a-time, I was wondering if I am missing a setting?


回答1:


I've been using Resharper for 5+ years and I'm using Resharper 9.1.3 Ultimate and I don't think what you want is possible.

The only way to make ReSharper create multiple properties at once is to have it implement missing properties from an interface. It might be worth creating a feature request!



来源:https://stackoverflow.com/questions/32008094/resharper-multiple-property-generation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!