What Arduino Mega do I use

Hello I have been working with an Arduino Uno for some projects but have had to move to an Arduino Mega to work on some projects that had more pins than the uno. I have the code written in the Arduino IDE and it works.I have been able to upload it to the board When I go to the VS IDE I am not sure what bard to select. The one I do select gives the following line “board = megaatmega1280” in the PlatfromIO.ini file. When I try to upload the code I get theis message “avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe0”.

So the physcial board says Arduino Mega 2560. I am sure I am selecting that board when I start a new project in VS code. I don’t have the Arduion IDE running at the same time so I know that is not interferring with the VS Code IDE.

I know there will be a simple answer so any help would be good.
Peter Cook

Can you change that to megaatmega2560 in the platformio.ini.

Thanks Max your a legend.