If I have no using statements in my C# file and I write e.g. return Task.CompletedTask;
the IntelliSense feature in VS will complain that Task
is not recognized. In order to fix this I need to add the using statement using System.Treading.Tasks;
.
Instead of typing it out I use the VS shortcut to fix this, but it always adds it at the top of the file, outside of my defined namespace. I know R# has a feature to import it inside the namespace, but can VS 2017 without R# support this? Or is there any extension etcetera which will support this?