Add code to project with perforce

I know you can change the file type to +w after you create the file, but that doesn’t really help when initially creating the c++ file in unreal.

Is there possibly a way to set a whole directory as writable so that UE can create the files normally?

Ultimately I’m saying I can’t get it to work and need more help.