To clarify, open your inventory and then shift+right click on the edible item. Works from any inventory. Also works for medical items.
Press the "stand up" button, then use the toolbar. While operating a vehicle, your toolbar is replaced by the vessel's toolbar, which can't be modified.