How do I generate a constructor from class fields using Visual Studio (and/or ReSharper)?

前端 未结 12 1807
有刺的猬
有刺的猬 2020-11-27 12:54

I\'ve gotten accustomed to many of the Java IDEs (Eclipse, NetBeans, and IntelliJ IDEA) providing you with a command to generate a default constructor for a class based on t

12条回答
  •  感情败类
    2020-11-27 13:47

    ReSharper offers a Generate Constructor tool where you can select any field/properties that you want initialized. I use the Alt + Ins hot-key to access this.

提交回复
热议问题