There are ways to get example codes: You may right click onto your UART component and select "Find Code Example" or you may select on the Creator start page your kit and search through the examples.
On your kit is a connection from UART pins to the Kitprog. This can be used to connect via UART to an emulated com port. Search the Kit's manual for details. ommunication via I2C is already set up with pull up resistors on some dedicated pins, see the schematics (in Program files(x86)\Cypress\...
The CodeExample "Interfacing_I2C_FRAM_With_PSoC401" could be helpful, it uses uart to display the result on PC.