Reputation: 1327
Is there a way to auto indent (like ctrl+i in MATLAB) FORTRAN code in Visual Studio.
Upvotes: 23
Views: 37079
Reputation: 19712
Select the code you want to format and press Ctrl+K,F (i.e Ctrl+K then Ctrl+F)
Ctrl+K,D will format the entire document, without changing your cursor position (as Select-All option does).
Upvotes: 3
Reputation: 40603
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.
Upvotes: 33