This is probably a dumb question, however I’m curious. I’m following a bunch of examples and creating new little projects all the time. Every time I create a new project, e.g.: “cocos new ProjectName -l cpp -p com.mycompany.myproject” HellWorldScene.cpp and .h are created, the problem is about the name, I’m using Xcode most of time and refactor is not configured for C++ projects, so I have to rename all references and files on my own. How can I force cocos to naming these entry files with some custom name? Is that possible or I need to keep the same way I am doing?
I’ve checked “cocos -h new” and not even any clue about what I’m looking for.
Not a complete solution to your problem, but you might find this useful.
Xcode does have some renaming capability, even for C++ projects.
You can use the global search and replace for the class names, and narrow the search criteria to just your classes folder so you wont accidentally change code elsewhere (would be nice to have refactor scope protection, but like you said, it doesnt work for C++ projects). Then all you have to do a slow-left-double-click on the file name in Xcode and change it as needed.
If you want to rename the entire project too, then you can click on the project name to rename the entire project. This will automatically rename targets and the .xcodeproj file. You can then open Schemes, delete the old schemes and then click auto create to create new schemes. Then there is the bundle identifier that you probably want to change.
If you really don’t want to do all of this, you could look into how to create an Xcode project template.