0

我使用UML規劃了我的項目。所以,當實際編寫代碼時,我會花很多時間添加一些類文件。我在這個過程中變得相當快,但我覺得它可以得到改進(並且VS 2017可能有一些工具可以幫助)。Visual Studio 2017 Bulk Bulk加法器

現在,我做的方式是:

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中的工具,可以讓你增添不少快速連續的課程。較好的是:

(asks you for the first class name) 
1- type the class name 
2- Enter 
(asks you for the second class name.. repeat) 

回答

0

你可以嘗試用Add New File extension,它可以使用Shift + F2快捷鍵來快速添加文件。

而且你也無法每次選擇文件類型。添加文件時,只需在文件名後面鍵入文件後綴。