Visual Studio Smart Indent?

dewalla picture dewalla · Feb 15, 2012 · Viewed 34.1k times · Source

Is there a way to auto indent (like ctrl+i in MATLAB) FORTRAN code in Visual Studio.

Answer

Martin picture Martin · Feb 15, 2012

If you are using Visual Studio with the C# keyboard settings, the keyboard shortcut is Ctrl+K followed by Ctrl+F.

To get the full list of predefined shortcuts, see http://msdn.microsoft.com/en-us/library/da5kh0wa.aspx (Edit.FormatDocument). The list has all keyboard shortcuts from Visual Studio 6 to Visual Studio 2013.