问题
Is there a way to format code using a keybinding in Monodevelop? Format Code In MonoDevelop claims you can use Control + I but it does not appear to work.
回答1:
The only workaround I discovered is under
Tools->Options->Text Editor->Behavior
You can check the option Format document on save
which lets you use Control+s to save and format code.
回答2:
Tools->Options->Key Bindings
Scroll to 'Edit' section and give a keybinding to the 'Format Document' command

Brownie points for whoever guesses what IDE I'm used to :D
来源:https://stackoverflow.com/questions/20915666/shortcut-for-formatting-code-in-monodevelop