GraphQL: Syntax Highlighting installs statistics
By GraphQL Foundation (3 listings) · VS Code Marketplace · Programming Languages
Adds syntax highlighting support for .graphql & embedded support for javascript, typescript, vue, markdown, python, php, reason, ocaml and rescript
GraphQL: Syntax Highlighting has 2,880,689 recorded installs on VS Code Marketplace, an increase of 1.7% over the past 30 days, ranking #261 of 2,515 tracked listings.
Rating: 5.00 / 5 from 3 ratings
About GraphQL: Syntax Highlighting
GraphQL Syntax Support
Adds full GraphQL syntax highlighting and language support such as bracket matching.
Requires VS Code 1.104.0 or later. All three GraphQL extensions share the Node.js 22.18.0 or newer extension-host baseline provided by VS Code.
- Supports
.graphql/.gql/.graphqlshighlighting - Javascript, Typescript & JSX/TSX (examples: test.js & test.ts)
- Vue (examples: test-sfc-comp.vue & test-sfc.vue)
- Svelte (example: test.svelte)
- ReasonML/ReScript (
%graphql()) (example: test.re) - Python (example: test.py)
- PHP (example: test.php)
- Markdown (examples: test.md & test-py.md)
- Scala (example: test.scala)
You'll want to install this if you do not use graphql-config, or want to use
the highlighting with other extensions than vscode-graphql
Contributing
Feel free to open a PR to fix, enhance any language support, or even add new languages 😍
see:
Contributor Guide: Improving a Language
Whether fixing a bug or adding a new delimiter for your language, here are a few tips for you:
- TDD approach: add your bug case or new delimiter example to the relevant file in
tests/__fixtures__ - run
pnpm test -- -uin the syntax extension workspace, and observe whether vscode-textmate tokenizes your example properly - fix/update/add the relevant pattern, and repeat the above to see if the tokenization changes. you should see
meta.embedded.block.graphql - to test manually, run
pnpm vsce:packagein the workspace and right click to install the bundled vsix extension, and open the fixture file
<span id="adding-a-lang"></span>
Contributor Guide: Adding a Language
- add a file to grammars following our other examples.
- be sure to add it to
package.jsoncontributions as well, in thegrammarssection. thetext.html.markdownis for applying to markdown codeblocks - use a scope ala
source.{lang}from a vscode-provided syntax grammar, or a popular, official contributed grammar. To find the name of the scope for any token's highlighting, useDeveloper: Inspect Editor Tokens & Scopesfrom the vscode command palette. - name it
inline.graphql.{lang}for consistency - add a test file
tests/__fixture__to document example usage, and a test spec to__tests__to assert the snapshot, pointing to the source you created - run
pnpm test -- -uin the workspace to add the snapshot - use the snapshots to ensure your capture groups are working and serializing the graphql as expected
- in the test fixture, document all working cases and non working cases with Todo comments for common usage in your language. be sure to think of cases such as string interpolation and generics for typed languages.
- add it to the list above in the readme, with links to your test fixtures as usage documentation
- to manually test it in vscode itself, run
pnpm vsce:packagein the syntax extension workspace and right click and install the bundled vsix file, then view the test fixture
Usage Note
We would love for the other graphql extension authors to freely use this syntax
extension as well! Even if your extension is designed to replace
vscode-graphql, or if it's designed for other other purposes. It uses an MIT
license, but attribution is always a nice gesture to the original authors :)
License
MIT License
Copyright 2022 GraphQL Contributors
Description from the VS Code Marketplace listing.
- graphql
- javascript
- php
- python
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Programming Languages plugins
All 20 GraphQL: Syntax Highlighting alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=GraphQL.vscode-graphql-syntax. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.