Moving from Keil to STMCube

I am doing a university course using an STM32L431 and started using Keil uVision 5. My team has run up against the code limit with all optimizations turned on and it seems to be unavoidable. Is there an easy way to import a project back from keil. I keep running into issues whether it's files not being read in or in the most recent case

#ifndef __TARGET_FPU_VFP in port.c

failing and throwing the error along with a bunch of different  stray # in the same file. As far as I can see I have set this option. I also ran into the same issue trying to import into segger embedded studio.

More questions in this forum