Friday, January 31, 2014

Tip 2.33: How to complete a word

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Whenever you can invoke statement completion, you can also execute the Edit.CompleteWord command. This command completes a word that is partially complete and that has no other possibilities. And if there are other multiple possibilities, the command invokes statement completion.

In the following example, since Console.WriteL has no possible matches other than Console. WriteLine, pressing Ctrl+Space or Alt+Right Arrow will write out WriteLine.



Happy Programming! =)
Posted by Nils-Holger at 11:58 AM with 481 comments.

Thursday, January 30, 2014

Tip 2.32: How to display quick info for a function

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Type in a method name—for example, Console.Read—and then press Ctrl+K, Ctrl+I to invoke Quick Info on a function. The command is Edit.QuickInfo.



Happy Programming! =)
Posted by Nils-Holger at 1:49 PM with 37 comments.

Wednesday, January 29, 2014

Tip 2.31: How to display parameter info for a function

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Press Ctrl+Shift+Space to display the parameter info. The command is Edit.ParameterInfo.



To iterate through the possible parameter choices, press the down arrow to go to the next function overload and press the up arrow to go to the previous function overload. For whatever reason, she always reverses these arrow keys and ends up navigating backward.

Happy Programming! =)
Posted by Nils-Holger at 12:56 PM with 439 comments.