You can use the Auto Task Screen keys.

Planet Task Commands

  • Order Commands:
    • SetFCode: self-explanatory.
    • BuildBaseWait: build a starbase. If there are insufficient resources, waits until it can be built;
    • BuildFactoriesWait, BuildMinesWait, BuildDefenseWait: build planetary structures. If there are insufficient resources, or the planet does not have enough colonists, waits until they are available.
  • Cargo Commands: CargoUnloadAllShips: unload Tritanium, Molybdenum, Duranium, colonists, supplies, and cash from all ships in orbit of this planet. You can edit the command using Space to fit your needs.
  • Miscellaneous Commands:
    • Notify: generate a message and wait until you confirm it; use this to send reminders into the future (like "have reached waypoint, refuel me")
    • SetComment: change planet comment
    • WaitOneTurn: wait one turn, performing whatever orders that were given before
    • Restart: restart auto task from the beginning

If the cursor is at a "build" command, and there are insufficient minerals, PCC2 will show the missing amounts. Command like BuildFactoriesWait may already have been partially executed. In this case, PCC2 will show how many items still need to be built (e.g. "To build: 10/30": of the 30 ordered buildings, 20 have already been built, and 10 still need to be done).

Reference

Keys:
Enter from planet screen
Related command:
UI.GotoScreen
Keymap:
AutoTaskScreen
Script context:
Planet()