Visual Studio 2017 批量 Class 加法器
Visual Studio 2017 Bulk Class adder
我使用 UML 计划我的项目。因此,当真正编写代码时,我花了很多时间添加一堆 class 文件。我在这个过程中变得相当快,但我觉得它可以改进(VS 2017 可能有一些工具可以提供帮助)。
现在,我的做法是:
1- Ctrl+Shift+A -> add new item
2- (it's usually already specified the template I'd like to use, so I don't have to search for it.
3- Shift+Tab x3 -> to move the selection to the name of the class
4- Type the name
5- Enter
虽然这相当快,但我想知道 Visual Studio 中是否有某种工具可以让您快速连续添加很多 classes。优选:
(asks you for the first class name)
1- type the class name
2- Enter
(asks you for the second class name.. repeat)
你可以试试Add New File extension,可以用Shift+F2快捷方式快速添加文件。
而且你也不能每次都选择文件类型。添加文件时只需在文件名后面输入文件后缀即可。
我使用 UML 计划我的项目。因此,当真正编写代码时,我花了很多时间添加一堆 class 文件。我在这个过程中变得相当快,但我觉得它可以改进(VS 2017 可能有一些工具可以提供帮助)。
现在,我的做法是:
1- Ctrl+Shift+A -> add new item
2- (it's usually already specified the template I'd like to use, so I don't have to search for it.
3- Shift+Tab x3 -> to move the selection to the name of the class
4- Type the name
5- Enter
虽然这相当快,但我想知道 Visual Studio 中是否有某种工具可以让您快速连续添加很多 classes。优选:
(asks you for the first class name)
1- type the class name
2- Enter
(asks you for the second class name.. repeat)
你可以试试Add New File extension,可以用Shift+F2快捷方式快速添加文件。
而且你也不能每次都选择文件类型。添加文件时只需在文件名后面输入文件后缀即可。