Is there a "rename file" option in codeblocks, instead of renaming it through Explorer? I tried right-clicking the tab, but there didn't seem to be one.
Asked
Active
Viewed 2.2k times
2 Answers
52
Make sure the file you're renaming isn't open in codeblocks. Under Projects->Workspace, right-click on the file to popup the context menu. From there click "Rename file...":

greatwolf
- 20,287
- 13
- 71
- 105
-
12I had to google for this. This makes no sense. You can't rename a file because it's open???? WHAT??? – AntonioCS Jan 15 '17 at 17:53
-
2@AntonioCS It's likely because codeblock has a lock on the opened file that prevents the rename. They could have designed it better to handle this but they didn't unfortunately. – greatwolf Jan 16 '17 at 00:43
-
1Like any other IDE? Netbeans, eclipse etc... I just get confused on why people say this is a good c++ IDE when it fails at the most basic things... – AntonioCS Jan 17 '17 at 07:52
-
6Codeblocks is almost twice as fast as eclipse and netbeans. Eclipse is a nightmare to configure and writing C++ on something that runs on JVM is hideous. Codelite is an alternative, heck even VIM is an alternative, eclipse is not. – JohnJohn Aug 18 '17 at 05:32
-
3Less is more because CodeBlocks isn't bogged down by a buttload of extra features and tons of overhead. Personally it's my favorite C++ IDE even though I program specifically for Windows. I still prefer it over VS. – Edward Severinsen Sep 03 '18 at 10:18
-1
Make sure the file you're renaming is in front of you. Under Projects->Choose the file->Properties->Change the title. Inside Properties
-
The dialog box that you indicate in the link, allows you to rename the name of the project (title), not the name of a header or source file – Sergio Dec 08 '21 at 14:02