Press the ~ key in the editor to open the console (the key to the left of the number 1).
Some console commands differ between UE4 and UE5; see: UE4 Common Console Commands.
Below are some commonly used console commands:
show collision — display collision bodies