简体   繁体   中英

Gray bracket line when coding in vs2015 dot.net core MVC connection

I'm following an online course about asp.net core While editing in vs2015 something strange happened and i wonder what causes this.

public class MariaController
{
    [HttpGet("/")]
    public string Index() => "Hello from index mvc";
   [HttpGet("/Maria")]
    public string Maria() => "Hello from Maria mvc";
}

In above code the bracket code [....] uses colors as VS2015 should do too. But the strange thing overhere is the text becomes completely gray, i'm puzzled of what can cause that. if I putt marks for it ea //[....] it gets comment collor, and then if i remove comment and edit the text between [..changed] i'm getting color notation back, but as soon as i hit enter again that whole line [..changed..] becomes light gray again. I wonder if i hit something wrong. one moment it looked good the other moment they all went gray.. and well i didnt went into the menu's is this some config issue perhaps ?.

原因是vs2015插件增压器,它不知道MVC 6中的语言技巧

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM