當我在代碼塊File->New->project->console application->Go->C++-><project title>->GNU compiler->finish
(調試和發佈框都選中)中創建一個新項目時,然後創建一個名爲main
的文件名爲.cpp
的項目。代碼塊(新項目/重命名主文件)
我的問題是如何重命名這個主文件。
在問這個問題之前,我試圖解決它,但它包括很多步驟。
我試過兩種方法(一種方法給了我一個解決方案,另一種方式表明文件已損壞)。
其實我想找到一個快速的方法來重命名這個主文件? 如果有任何方法請告訴我。
兩種方法,我用(下面提)
File->New->project->console application->Go->C++-><project title>->GNU compiler->finish
然後去到本地磁盤(如果項目被保存)重命名main
文件。再次在代碼塊中打開項目。打開它說文件不存在的主文件。 此方法很快,但未能重命名main。File->New->project->console application->Go->C++-><project title>->GNU compiler->finish. then in code blocks at left side bar Sources/main/right click on main/remove file from project (then code blocks indicate you have deleted this main file but actually its not when I checked in local disk, main file was there). Then I create a new
.cpp`文件作爲文件/新建/文件和接下來的簡單步驟。
因此,最後我得到了我想要的。與.cpp
文件(我想要的名稱爲.cpp
文件)的新項目。但我不滿意,我想要一個快速的方法。
爲了顯示**重命名文件... **選項,該文件無法在編輯器中打開。 –