Check that your keyboard shortcuts are configured. To do this, press Ctrl+Alt+S, navigate to Keymap, open up Main menu drop down, open Code folder and check that Reformat Code has a key combination set. You can also find Reformat Code via the search bar.