GraphQL syntax highlighting inside C# strings with [StringSyntax("graphql")] #6644
gdifilippo-ca
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
as you may know, with .NET 7 we got the
[StringSyntax]
attribute, which brings syntax highlighting to string literals for various predefined syntaxes such as Json and Regex. As far as I know, there is no support for custom syntaxes, although there are plans to enable developers to write plugins for this purpose. I noticed that some parameters were decorated with[StringSyntax("graphql")]
, as discussed in this issue, but again, as far as I know, GraphQL syntax is not currently supported.To bridge this gap until official support arrives, we've developed GraphQLTools, a free Visual Studio 2022 extension that enables GraphQL syntax highlighting and error checking. Our extension is open source and currently in the early stages of development, but fully functioning. We welcome your suggestions and feedback to help us make it even better.
Feel free to check it out and share your thoughts! 😊
Beta Was this translation helpful? Give feedback.
All reactions