Cut the tofu into bite-sized pieces.
Finely chop the carrot and onion.
Add oil to a preheated pan and stir-fry the tofu.
When the tofu turns golden brown, add the carrot and onion and stir-fry together.
Add the rice and mix well with the other ingredients while stir-frying.
Season with soy sauce, salt, and pepper to taste.
Serve the cooked tofu rice in a bowl.