Can i have a different filename for main.cpp

Hello i have a couple of projects that is edit at the same time with in one VSCODE environment. Having multiple main.cpp open is hard to see which is which.

So i was wondering if i could change the main.cpp filename. I know i could do it easily using ESP-IDF but reading the platformio doc’s i could not figure out if or how to notify which file to use.

Is this possible and how?

You can name your files to whatever you want. But the extension must stay .cpp.

Having multiple projects open at the same time may cause some troubles. I recommend to have only one project open a at a time. If you need to open another project you can always start a new instance of VS Code.

See