In Microsoft Visual Studio 6.0, you could create several files at once by spacing them with double quotes in the "Add files to project" dialog:
在Microsoft Visual Studio 6.0中,您可以通过在“将文件添加到项目”对话框中用双引号将它们隔开来一次创建多个文件:
"Class1.h" "Class1.cpp" "Class2.h" "Class2.cpp"
It seems they have removed that functionality since 2003. Now, for every file I want to create, I have to select the file type I want, then name it, then press OK, then reopen the dialog for the next file. This is breaking my flow when I'm thinking about all those classes I have to create.
它似乎已经从2003年删除了该功能。现在,对于我想要创建的每个文件,我必须选择我想要的文件类型,然后命名,然后按OK,然后重新打开下一个文件的对话框。当我在思考我必须创建的所有类时,这会打破我的流程。
Surely, there is a better, macro free, way. What is it?
当然,有一种更好的,无宏的方式。它是什么?
2 个解决方案
#1
You could make use of the Command windows keywords, such as "new" or "nf"
您可以使用命令窗口关键字,例如“new”或“nf”
Have a look at this link Visual Studio Commands and Switches and here are all the available aliases Predefined Visual Studio Command Aliases
看看这个链接Visual Studio命令和开关,这里是所有可用的别名预定义的Visual Studio命令别名
#2
for(int i = 0; i < 3; i++)
{
Ctrl + Shift + A
Enter
按Ctrl + Shift + A Enter
}
#1
You could make use of the Command windows keywords, such as "new" or "nf"
您可以使用命令窗口关键字,例如“new”或“nf”
Have a look at this link Visual Studio Commands and Switches and here are all the available aliases Predefined Visual Studio Command Aliases
看看这个链接Visual Studio命令和开关,这里是所有可用的别名预定义的Visual Studio命令别名
#2
for(int i = 0; i < 3; i++)
{
Ctrl + Shift + A
Enter
按Ctrl + Shift + A Enter
}