You can change anything about your character's appearance, including gender.Press '~' again to close the console so that you can start making changes.
This will pull up the character creation screen that you came across when you initially created your character. How to Change Your Character's Appearance (The same applies to all console changes.) This will allow you to revert to a working saved game if for some reason changing your character causes any problems. Before we begin, don't forget the number one rule of modding: Always make a new save before making any changes to your character's appearance or name.