I have a C# 10 project with <ImplicitUsings>
enabled:
<LangVersion>10</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
With this in place, VS will gray-out many common namespaces in code files and offer to remove them.
However, when I create a new C# file it still imports all of the now-unnecessary using statements by default:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MyNamespace
{
internal class Class1
{
}
}
Is this just a limitation of VS or is there something I can do to convince it to omit these namespaces from the new file template?