With this code
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace ContactManager.Pages
{
[AllowAnonymous]
public class IndexModel : PageModel
{
public void OnGet()
{
}
}
}
I typed [AllowAnonymous] but it did not auto import Microsoft.AspNetCore.Authorization.
Is this intentional or should this work?
use "Ctrl+." to trigger "import", it doesn't work if your input method not in English(en)(on my Ubuntu)
Auto imports would be amazing to have! Cycling through auto suggestions feels great (waiting and pressing ctrl + . in this case does not)
Closing as a duplicate of #3730
Most helpful comment
use "Ctrl+." to trigger "import", it doesn't work if your input method not in English(en)(on my Ubuntu)