Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autocomplete blocks in C#

Tags:

c#

Iam used to Eclipse and Java development, but because of my job I need to start coding in C#. I find it a bit annoying that visual studio doesn't autocomplete my blocks. For instance when I write a new function, class or statement am used to that the IDE autocompletes my blocks. So when I type:

private function sendData(String msg, String email) {

and hit enter the closing bracket appears automatically, is there any settings that enables this function in Microsoft visual C# 2010 express ?

like image 372
Tobias Moe Thorstensen Avatar asked Aug 16 '26 06:08

Tobias Moe Thorstensen


2 Answers

This isn't possible with Express versions, since you can't install extensions. You'll need to use Professional or higher and use third party extensions. Some simple free ones will do this (such as Productivity Power Tools), as does the commercial product ReSharper, which does much more more. The later likely would make Visual Studio have other features that you're probably used to comming form Eclipse, such as more refactoring support.

like image 152
Matt Avatar answered Aug 18 '26 20:08

Matt


I'm almost certain that the Productivity Power Tools extension will give you this feature. You can find it here:

http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef

It's really a great add-on and it will give you a lot more control over options like this.

like image 35
MattSavage Avatar answered Aug 18 '26 18:08

MattSavage



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!