新增和移除專案項目Adding and Removing Project Items

您可以在 [Solution Pad] 的專案節點上按一下滑鼠右鍵,並瀏覽至 [新增] > [新增檔案],以將新的專案項目新增至您的專案中:You can add new project items to your project by right-clicking on the Project node in the Solution Pad and browsing to Add > New File:

新增專案項目

這會顯示 [新增檔案] 對話方塊,其中除了預設範本之外,還會根據您所建立的應用程式類型提供檔案範本,例如空白類別或空白列舉。This displays the New File Dialog, which provides file templates based on the type of application that you are creating in addition to the default templates, such as Empty Classes or Empty Enumerations. 例如,如果您要撰寫 iOS 應用程式,則可以選取 [分鏡腳本] 來建立新的空白分鏡腳本檔案:For example, if you are writing an iOS application, you can select Storyboard to create a new empty Storyboard file:

在 iOS 中新增空白分鏡腳本

新增現有檔案Adding existing files

您可以將現有檔案新增至專案,方法是以滑鼠右鍵按一下專案節點,然後選取 [新增] > [新增檔案...]。或者,若要新增整個資料夾,請選取 [新增] > [新增現有資料夾...]。這會顯示檔案瀏覽器,可讓您搜尋系統是否有要新增的必要項目。You can add existing files to your project by right-clicking on the Project node and selecting Add > Add Files.... Alternatively, to add an entire folder, select Add > Add Existing Folder.... This displays the file browser, which lets you search your system for the required item to add.

移除項目Removing items

若要移除目前專案中的項目,請以滑鼠右鍵按一下項目,然後選取 [移除]To remove an item from your current project, right-click the item and select Remove

移除項目

這會顯示刪除項目對話方塊。This displays the delete item dialog. 請選取其中一個選項,將它從專案中移除:Select one of the options to remove it from the project:

刪除項目對話方塊

  • 刪除 - 從專案和磁碟中移除項目。Delete - Removes item from project and from disk.
  • 從專案中移除 - 從專案中移除項目,但不會從磁碟中移除項目Remove from Project - Removes item from project, but will not remove it from disk