【发布时间】:2021-12-21 06:03:30
【问题描述】:
当我在代码块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` 文件作为 File/New/File 和接下来的简单步骤。
所以我终于得到了我想要的。一个带有.cpp 文件的新项目(我想要的.cpp 文件的名称)。但我不满意,我想要一个快速的方法。
【问题讨论】:
标签: codeblocks