Hello Denis Collis ,
I have a method(there should be not only one ways.) as below steps:
(change K64 to K22 chip as example)
- Change MCU at "MCU setting" :

- Create a new K22 project as reference.
- Change "Defined symbols" refer to k22 project setting :

- Open pins config :

there will be some error , right click the error message , refer to reminder to do :

- Delete files related with k64:

- Build your project , it should still have some error , refer to the Console error message fix them.
Hope it helps,
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------