简体   繁体   中英

How to disable html angular attribute suggestions in Visual Studio 2019?

I simply want to remove these Angular suggestions in html files in Visual Studio 2019, since i dont use Angular. 在此处输入图片说明

Where can i do that? I tried to find it in under Tools -> Options -> Text Editor -> HTML, but didn't seem to be there.

Thanks in advance

Step 1: Save a backup copy of C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\IDE\\Extensions\\Microsoft\\Web Tools\\Languages\\Schemas\\HTML\\SchemaCatalog.xml (just in case)

Step 2: Edit the above file to delete the following element:

  <schema File="angular.xsd" FriendlyName="AngularJS"
      Uri="http://schemas.microsoft.com/intellisense/angular" IsSupplemental="true" CustomPrefix="ng-" />

Step 3: Restart Visual Studio

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