Is there a way to configure Visual Studio so that the intellisence will automatically inset "using" statements (reference to class library) just like in Eclipse (Java)?
This feature is really useful since visual studio only informs you a reference is missing but no suggestions are shown?
Am new to visual studio. Help will be highly appreciated.
with the caret over the Type declaration you just typed, press CTRL + ALT + F10 a context menu appears offering to add the using statement. Also apparently (see JohnD's answer) CTRL + . works too and I just tried it, cool, we learn something new every day!
EDIT
oops! sorry that should be: SHIFT + ALT + F10
Of course that relies on having the relevant dll assembly referenced in the project
If you select the expression that's not resolved, and hit CTRL+. (control-period) it will pop up a context menu to add the using statement.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With