News for hackers. Stuff that matters.
Re:A Preview of C# 8 [video] by wvenable on Friday August 25, 2017 @12:13PM (#15099566)
It will only auto-complete methods that are in scope (the alternative would be a bit crazy) however Visual Studio is smart: if you type in a method you know exists you can press CTRL-. to get it to add the correct using statement to bring that extension method into scope.
Re:A Preview of C# 8 [video] by nickspag on Friday August 25, 2017 @12:36PM (#15099824)
You can turn on an Intelisense option to show methods that would be in scope, if you had the using statement, and it will auto add the using statement if you select that. Really helpful.
Re:A Preview of C# 8 [video] by wvenable on Friday August 25, 2017 @12:59PM (#15100101)
Is this a Resharper thing?
Re:A Preview of C# 8 [video] by jongalloway2 on Friday August 25, 2017 @01:27PM (#15100406)
Yes, it looks like that's "Import Symbol Completion" - https://www.jetbrains.com/resharper/features/code_completion...
Re:A Preview of C# 8 [video] by nickspag on Friday August 25, 2017 @01:45PM (#15100571)
No, but after looking at VS 2017 on my pc and VS for Mac, apparently it's only a feature in VS for Mac- at least from what I could find. I imagine that gets changed soon but yea.

If you use VS for Mac its under Preferences > Text Editor > Intellisense > Show Import Items

Re:A Preview of C# 8 [video] by int_19h on Friday August 25, 2017 @08:30PM (#15103380)
In VS 2017, if you use a method that's an extension method, and don't have the namespace imported, it'll show the auto-correction bulb with an offer to import it.

Better yet, if it's from a NuGet package, it'll offer to install one (or several, if there are multiple candidates).