Snippet code to create constructor in VS2010 Express

允我心安 提交于 2019-12-01 04:23:44

ReSharper is what you're looking for. But there's no free version. But from .NET 3.5 you can initialize the properties without having an explicit argument for each of them.

I don't believe snippets can help you with that. You would need to be able to analyze the types of the properties to generate the constructors, plus it would need to be able to convert to camel case.. snippets are basically simple substitution.

Well... I think the best solution might be to use a script of some sort. You could then run it, either from command line, or, use a separate text editor with scripting support, copy/paste the class to this second editor, run script which generates the constructor, copy/paste the constructor back to VS Express.

Say, Notepad++ with the python script plugin?

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