Requests are in resources in the form of * .sql files, and in the place of the call there are instructions of this type:

Properties.Resources.Query 

When you hover the cursor over Query, the query text is displayed, but there is no syntax highlighting.

Are there any plugins that fix this problem?

You can, of course, open files in VS browsers and everything is highlighted there, but this is not always convenient, since extra tabs are multiplying.

  • codinion.com backlight for the 2015 studio, I'm not sure about the queries, I need to watch - user2455111
  • savepic.ru/12761556.htm tints classes - user2455111
  • @ user2455111, no, requests do not tint. - iluxa1810

2 answers 2

This question has already been discussed in English-language SO, and as an option this extension for Visual Studio 2012 was proposed, which you can try to create in a newer version of Visual Studio by editing the manifest. However, the discussion agreed that it could not work correctly, because the parser is not able to determine whether the string is SQL code or just a string and may not work correctly.

Alternatively, you can use .sql files with SQL code in the project (which, in principle, are highlighted rather well), using them like this:

  string sql = System.IO.File.ReadAllText("путь к файлу .sql"); 

All answers are taken from the original English discussion .

    As for me, the Syntax Highlighting Pack is best suited because it supports so many programming languages ​​and works with Visual Studio 2015, 2017