Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

Prettier Pro - Code formatter

Package Overview
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry
This package was compromised as part of the ongoing "GlassWorm v2" supply chain attack.

Affected versions:

11.0.111.0.2
View campaign page

Prettier Pro - Code formatter

Prettier is an opinionated code formatter for VS Code

unpublished
Open VSX
Version
11.0.2
Version published
Maintainers
0
Created
Source
Prettier Pro Icon

Prettier Pro – Code Formatter for VS Code

Prettier Pro is a smart and customizable code formatting extension for Visual Studio Code, developed by cudra-development and published by cudra-production.

Key Features

  • Effortlessly format JavaScript, TypeScript, JSON, CSS, HTML, Markdown, and many more languages.
  • Supports additional languages through Prettier plugins.
  • Consistent code style enforcement and automatic formatting.
  • Integration with project, global, and VS Code settings.

Supported Languages

  • JavaScript, TypeScript, Flow, JSX, JSON
  • CSS, SCSS, Less
  • HTML, Vue, Angular, Handlebars, Ember, Glimmer
  • GraphQL, Markdown, YAML
  • Plus others with Prettier plugins

Quick Start

Install via the VS Code extension marketplace by searching:

Prettier Pro - Code formatter

Or use Quick Open (Ctrl+P or Cmd+P) and run:

ext install vsce-prettier-pro

Making Prettier Pro Your Default Formatter

To make sure Prettier Pro is always used, add to your settings.json:

{
  "editor.defaultFormatter": "vsce-prettier-pro",
  "[javascript]": {
    "editor.defaultFormatter": "vsce-prettier-pro"
  }
}

Configure per-language or disable format-on-save as preferred:

{
  "[javascript]": { "editor.formatOnSave": false }
}

How Prettier Is Resolved

The extension prefers your project’s local Prettier, but can use global Prettier if prettier.resolveGlobalModules is enabled.

Install locally for best results:

npm install prettier -D --save-exact

You'll be prompted before loading the Prettier module from your project.

Using Prettier 3

Prettier Pro is compatible with Prettier 3.x. To use it, install a modern Prettier version:

npm install prettier@latest -D

Plugin Support

Any valid Prettier plugins listed in your package.json will be loaded automatically with your chosen Prettier version.

Configuration Options

Configure Prettier Pro via:

A project-level config is highly recommended to ensure style uniformity.

Set a global config with:

{
  "prettier.configPath": "~/path/to/.prettierrc"
}

Note: This will override project configurations.

Usage Guide

Format Document / Selection

Open the Command Palette and choose:

  • Prettier Pro: Format Document
  • Prettier Pro: Format Selection

Or bind your own shortcuts for:

  • editor.action.formatDocument
  • editor.action.formatSelection

Format On Save

{
  "editor.formatOnSave": true
}

Supported for Selection Formatting

  • javascript
  • typescript
  • json
  • graphql
  • handlebars
  • javascriptreact
  • typescriptreact

Forced Formatting

Use Format Document (Forced) to format files typically ignored (e.g., in .prettierignore).

Let Prettier Pro handle formatting, and disable style-related rules in your linter for the best results.

Trust & Security

If your workspace is untrusted, only the built-in Prettier will run, plugins and external modules are disabled.

Main Extension Settings

  • prettier.enable
  • prettier.requireConfig
  • prettier.ignorePath
  • prettier.configPath
  • prettier.prettierPath
  • prettier.resolveGlobalModules
  • prettier.documentSelectors
  • prettier.useEditorConfig
  • prettier.withNodeModules

Consult the VS Code documentation for a detailed list and descriptions.

Troubleshooting

"Failed to load module"

Install missing dependencies with:

npm install

"Outdated Prettier version"

Upgrade your Prettier package to the latest version.

"Workspace not trusted"

Trust your workspace to enable Prettier plugins and local/global modules.

License

MIT © cudra-development

Keywords

__ext_graphql

FAQs

Package last updated on 21 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts