当我在代码块中创建一个新项目File->New->project->console application->Go->C++-><project title>->GNU compiler->finish(调试和发布框都被选中)时,会创建一个项目,其.cpp文件名为main.
我的问题是如何重命名这个主文件。
在问这个问题之前我已经尝试解决它,但它包含很多步骤。
我尝试了两种方法(一种方法给了我解决方案,另一种方法表明文件已损坏)。
其实我想找到一种快速的方法来重命名这个主文件?如果有什么方法请告诉我。
我使用的两种方法(下面提到)
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但我不满足,我想要一个快速的方法。
codeblocks ×1