This question already has lots of valid answers. For people that want a visual image here it is.
In visual studio go to options search for indent and select your language. In my case it is c++. As you toggle between the options visual studio will show you an example bellow.