Visual Studio Tip: Formatting Keyboard Shortcut Author JanellPublished on July 1, 2014May 27, 2016 CTRL + K and then CTRL + D will format your code. This is helpful, for example, if you have code that isn't indented. Using these two keyboard shortcuts will have Visual Studio reformat your code. Related