Visual Studio 2010: Easiest way to duplicate a class?

后端 未结 7 1440
深忆病人
深忆病人 2021-01-18 19:08

Is there an easy way to duplicate a class with a different name?

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-18 20:05

    • Open file in Visual Studio.
    • Press Ctrl+A.
    • Press Ctrl+C.
    • Create a new file for the new class.
    • Press Ctrl+V in the new file.
    • Replace all old class names with the new one. (Ctrl+H)

提交回复
热议问题