Prettier vs. GraphQL: Syntax Highlighting
Prettier
Prettier is an opinionated code formatter that enforces strict formatting rules to keep your code consistent. This extension allows you to run prettier on save, which is really handy.
GraphQL: Syntax Highlighting
Syntax highlighting for .gql, .graphql and .graphqls files. It also works with inline GraphQL in JavaScript, TypeScript, jsx, tsx, Vue, Svelte, PHP, ReasonML, Python, Markdown, Scala and Ruby.

Reviews
Reviews
Item | Votes | Upvote |
---|---|---|
No pros yet, would you like to add one? |
Item | Votes | Upvote |
---|---|---|
No cons yet, would you like to add one? |
Item | Votes | Upvote |
---|---|---|
No pros yet, would you like to add one? |
Item | Votes | Upvote |
---|---|---|
No cons yet, would you like to add one? |
Frequently Asked Questions
Prettier and GraphQL: Syntax Highlighting serve different purposes in JavaScript development. Prettier is an opinionated code formatter that enforces consistent code formatting, which helps maintain readability and reduces syntax errors. On the other hand, GraphQL: Syntax Highlighting provides syntax highlighting for .gql, .graphql, and .graphqls files, as well as inline GraphQL in various languages including JavaScript and TypeScript. If your primary need is to maintain code format consistency, Prettier is more suitable. If you work extensively with GraphQL queries and need syntax highlighting, then GraphQL: Syntax Highlighting is the better choice.
Prettier is generally more essential for a JavaScript developer as it helps ensure that the codebase remains clean and consistently formatted, which is crucial for collaboration and maintainability. GraphQL: Syntax Highlighting is highly useful but more specialized; it is essential if your project heavily involves GraphQL. Therefore, Prettier is the more universally essential extension for JavaScript developers.
Prettier is an opinionated code formatter that enforces strict formatting rules to keep your code consistent. It helps in maintaining a uniform code style across your codebase, making it easier to read and maintain.
Prettier offers several features including automatic code formatting, support for multiple languages, integration with various editors, and the ability to format code on save. These features help in reducing the time spent on code formatting and improve overall code quality.
As of now, there are no user-generated pros and cons available for Prettier. Generally, the pros of using Prettier include consistent code formatting and ease of integration with various development tools. However, some users might find its opinionated nature too restrictive.
To use Prettier in Visual Studio Code, you need to install the Prettier extension from the Visual Studio Marketplace. Once installed, you can configure it to format your code on save by updating your VSCode settings. This makes it convenient to maintain consistent code formatting without manual intervention.
Yes, Prettier is customizable to some extent. You can modify various formatting options such as tab width, print width, and whether to use single or double quotes through configuration files or editor settings. However, it remains opinionated to ensure consistent code styling.
GraphQL: Syntax Highlighting is an extension for Visual Studio Code that provides syntax highlighting for .gql, .graphql, and .graphqls files. It also supports inline GraphQL in various languages including JavaScript, TypeScript, jsx, tsx, Vue, Svelte, PHP, ReasonML, Python, Markdown, Scala, and Ruby.
GraphQL: Syntax Highlighting supports a wide range of languages including JavaScript, TypeScript, jsx, tsx, Vue, Svelte, PHP, ReasonML, Python, Markdown, Scala, and Ruby.
The main feature of GraphQL: Syntax Highlighting is its ability to provide syntax highlighting for .gql, .graphql, and .graphqls files. Additionally, it supports inline GraphQL in multiple programming languages, enhancing readability and debugging.
Related Content & Alternatives
- 41.GitHub Copilot
AI-generated code autocompletions. Start typing and Copilot will generate code suggestions based on your input. Very often when you start typing the name of your function, it just autocompletes the entire function for you. It's hard to overstate how great this extension is. Does anyone even code without Copilot anymore?
- 23.DotENV
This simple extension provides syntax highlighting for .env files.
- 14.CodeMetrics
CodeMetrics shows you the cognitive complexity of your JavaScript and TypeScript code. If the complexity is too high, you know you need to refactor or simplify.
- 15.GitLens
There is so much to this extension but the most basic feature is visualizing code authorship. It shows you who made the last change to your current line, the commit message, and when the change was made. Other features include visualizing file history, navigating through git history, rebase editor etc.
- 07.DBCode
Connect, query and manage your databases without leaving Visual Studio Code. Supports Postgres, MySQL, MariaDB, SQL Server, MongoDB and more...
- 31.AdBlock
This strictly speaking isn't a productivity extension but ads are way too distracting. This extension helps you purge them from your browser. Enjoy a calmer browsing experience!
- 22.Momentum
Momentum replaces your default new tab screen with a beautiful, personalized dashboard. It shows you the time, current weather, and a beautiful landscape photo. It comes with simple productivity tools such as a pomodoro timer, to-do lists, focus time, link lists etc. Even if you don't use the productivity tools, it's just gorgeous to look at.
- 23.Block & Focus
This dead-simple extension allows you to block distracting websites for a period of time your specify. You get to decide which websites to whitelist and which ones to blacklist. Block & Focus comes with statistics, keyboard shortcuts, breaks, and a few other functionalities but is overall a really simple and effective tool.
- 25.News Feed Eradicator
News Feed Eradicator removes feeds from social media websites to help you use them more purposefully. Feeds are the most addictive parts of most website so this extension really helps you reduce mindless scrolling. News Feed Eradicator supports removing feeds from Facebook, Instagram, YouTube, Twitter/X, LinkedIn, Reddit, Hacker News, and GitHub. You get to pick which feeds to block and which to allow.
- 16.Link Hints
Click with your keyboard. Have a bad touchpad? Trouble using a mouse? Love keyboard shortcuts? Link Hints is a browser extension that complements the built-in keyboard shortcuts with ones for clicking. Press Alt+J (Ctrl+J on macOS). This makes little yellow boxes with letters, called hints, appear next to links (and other clickable things). Type the letters to click the link. Alternatively, hold Shift and type a bit of the link text. The keyboard shortcuts and hints are fully customizable. Alt+J: Click links, buttons, etc. Alt+K: Open link in new tab. Alt+L: Open link in new tab and switch to it. Alt+Shift+J: Click many things. Alt+Shift+K: Open many links. Alt+Shift+L: Select element.
- 17.GoFullPage
GoFullPage is a simple extension for taking full-page screenshots of websites. It handles all the scrolling and at the end allows you to export the website to png, jpg, or pdf.
- 042.Retext
Retext is a macOS text expander that simplifies repetitive typing by using AI-driven shortcuts. Unlike traditional expanders, Retext doesnβt require memorizing shortcuts; it intelligently suggests them across any app or browser. Key features include a native macOS design, universal compatibility, and reliable functionality, ensuring itβs always available. By organizing snippets intuitively, Retext boosts productivity, providing users with a seamless typing experience. Whether for professional emails, coding, or customer support, Retext is the ultimate tool to streamline repetitive tasks.
- 055.Page Printer | Reader Mode, Print, and Save as PDF
Convert any webpage into a print-friendly format, enjoy a built-in Reader Mode for distraction-free browsing, and save webpages as PDFs for easy access.
- 11.Runestone Text Editor
Runestone Text Editor is a tool for editing plain text and code and it's optimized for Apple Vision Pro. Features include syntax highlighting, customizable themes, tools for finding and replacing text, code formatting, and many more. It's free to use but offers premium features for a price. It has a rating of 4.8.
- 012.ChromeWinner
π ChromeWinner is "ahrefs for extensions". Analyze the competition, learn from the best and promote your extension. Receive daily updates on how your extensions perform and what competitors do. Grow your user base organically in Chrome Web Store by learning from already successful extensions. Subscribe to daily email digest and receive detailed updates: π SERP for Chrome Store: monitor search results in the Chrome Web Store π€ daily user growth: know which extensions acquire users faster β οΈ get alerts when there are new players in the market (new competitors) βοΈ new reviews and rating changes - use competitors' feedback for your own profit β¨ get notified when competitors release new versions
- 11.Grammarsen
Grammarsen is a desktop app that automatically corrects your selected text using chatgpt, helping you stay focused. No more copy pasting and switching tabs. Simply select some text, press a hotkey, and see the old text gets replaced with the corrected version. Grammarsen saves time for students, writers, marketers, english learners, and anyone who types a lot.
- 014.Lucia Auth
Lucia is an open source auth library that abstracts away the complexity of handling sessions. It works with any JS runtime - Node.js, Bun, Deno, Cloudflare Workers. It's also fully typed. It integrates with MongoDB. PostgreSQL, MySQL, SQLite, and with their respective ORMs and query builders.