added vscode extensions

This commit is contained in:
tomit4 2021-11-05 11:26:45 -07:00
parent 7cde0829be
commit 26e2a50441
316 changed files with 37301 additions and 0 deletions

View file

@ -0,0 +1 @@
_

View file

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged

View file

@ -0,0 +1 @@
lts/*

View file

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Language="en-US" Id="prettier-vscode" Version="8.0.1" Publisher="esbenp"/>
<DisplayName>Prettier - Code formatter</DisplayName>
<Description xml:space="preserve">Code formatter using prettier</Description>
<Tags>multi-root ready,prettier,formatter,javascript,js,jsx,flow,typescript,ts,json,css,less,scss,styled-components,styled-jsx,markdown,md,commonmark,mdx,php,pug,ruby,swift,html,vue,angular,graphql,yaml,yml,ignore,__ext_graphql,__ext_vue</Tags>
<Categories>Formatters</Categories>
<GalleryFlags>Public</GalleryFlags>
<Badges></Badges>
<Properties>
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.57.0" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
<Property Id="Microsoft.VisualStudio.Code.ExtensionKind" Value="workspace" />
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/prettier/prettier-vscode.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/prettier/prettier-vscode.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/prettier/prettier-vscode.git" />
<Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="https://github.com/prettier/prettier-vscode/issues" />
<Property Id="Microsoft.VisualStudio.Services.Links.Learn" Value="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode" />
<Property Id="Microsoft.VisualStudio.Services.Branding.Color" Value="#ffe04b" />
<Property Id="Microsoft.VisualStudio.Services.Branding.Theme" Value="light" />
<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
</Properties>
<License>extension/LICENSE.txt</License>
<Icon>extension/icon.png</Icon>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
</Installation>
<Dependencies/>
<Assets>
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Content.Changelog" Path="extension/CHANGELOG.md" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Content.License" Path="extension/LICENSE.txt" Addressable="true" /><Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/icon.png" Addressable="true" />
</Assets>
</PackageManifest>

View file

@ -0,0 +1,496 @@
# Change Log
All notable changes to the "prettier-vscode" extension will be documented in this file.
<!-- Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. -->
## [8.0.1]
- Forced version of vsce on build
## [8.0.0]
- Updated Prettier to 2.3.1
- Minimum supported VS Code version is now 1.57.0
- Added `id` and `name` properties to status bar (#2003)
- Uses VS Code [Workspace Trust](https://code.visualstudio.com/docs/editor/workspace-trust)
## [7.1.0]
- Revert bad changes from 7.0.0, will republish as 8.0.0
## [7.0.0]
- Bad release, do not use.
## [6.4.0]
- Updated Prettier to 2.3.0
- Forced mode now ignores `requirePragma` config
- Fix mismatch of option name `ignore` in description of HTML Whitespace Sensitivity ([#1941](https://github.com/prettier/prettier-vscode/pull/1941))
## [6.3.2]
- Removed loading status bar state
## [6.3.1]
- Updates to formatter registration
## [6.3.0]
- Removed notifications, all messages logged with status icon update.
## [6.2.1]
- Fixed regressions where VS Code settings `settings.json` could not be formatted
## [6.2.0]
- Stable 6.0 release, see Beta releases for changes
## [6.1.0] Beta
- Added command to force formatting regardless of ignores `Format Document (Forced)`
## [6.0.0] Beta
- Automatically detect package manager
- Delayed prettier registration to improve performance on large projects
- Status bar state and icons updates
- Prompt to allow Prettier module to load
- Added debug mode for logging
- Removed config for `disabledLanguages`
## [5.9.2]
- Reverted automatical detection of package manager
## [5.9.1]
- Removed Status bar color
## [5.9.0]
- Automatically detect package manager
- Move check mark in status bar to left side to match ESLint
- Status bar background to `statusBarItem.errorBackground` color on error
## [5.8.0]
- Updated prettier to 2.2.0
## [5.7.2]
- Updated prettier to 2.1.2
## [5.7.1]
- Log the location of the prettier config file
## [5.7.0]
- Updated prettier to 2.1.1
## [5.6.0]
- Activation on `onStartupFinished` to reduce impact on VS Code start.
## [5.5.0]
- Added [enable](https://github.com/prettier/prettier-vscode#enable) setting.
## [5.4.0]
- Added [Embedded Language Formatting](https://prettier.io/docs/en/options.html#embedded-language-formatting) option.
- Throttling of reloads on watched files to improve performance on large projects.
## [5.3.0]
- Refactoring of how the extension registers formatters to support file extension that don't have a language ID.
- Added support for [custom document selectors](https://github.com/prettier/prettier-vscode#prettierdocumentselectors) to provide formatting on custom languages/extensions.
## [5.2.1]
- Support for additional configuration file extensions (`toml`, `cls`).
## [5.2.0]
- Updated prettier to 2.1.0
## [5.1.3]
- Improved error output of certain plugin exceptions.
## [5.1.2]
- Added error logging for unusual prettier exceptions.
## [5.1.0]
- Resolves issue where untitled JSON files were resolved to `json-stringify` parser. (#1435)
## [5.0.1]
- Updated modules
- New build process
## [5.0.0]
- Removed support for legacy linter integration. [See documentation](https://github.com/prettier/prettier-vscode#linter-integration) on how to configure linters.
## [4.7.0]
- Adds support for formatting VS Code settings files (settings.json). (#1343)
## [4.6.0]
- Update loading implicit Prettier dep from `node_modules` to only occur if explicit `package.json` dep is not found in a parent directory
- Show a custom error message / notification in the case where `prettier.prettierPath` does not reference an instance of Prettier
## [4.5.0]
- Updated prettier to 2.0.5
## [4.4.0]
- Reverted change that attempts to resolve config based on prettier version.
## [4.3.0]
- Removed AppInsights telemetry as its no longer needed
- Updated instructions on how to use linters
- Added log warning about legacy linter integrations
## [4.2.0]
- Use default configuration based on the version of prettier
## [4.1.1]
- Updated prettier to 2.0.4
## [4.1.0]
- Support loading Prettier from `node_modules` even if it doesn't appear as a direct dependency in a `package.json`
- Honor project-scoped config when loading module (#1222, [#950](https://github.com/prettier/prettier-vscode/issues/950))
- Added configuration option `withNodeModules` to enable processing of files in the `node_modules` folder
- Updated prettier to 2.0.3 (#1289)
## [4.0.0]
- Updated prettier to 2.0 - [See changes here](https://prettier.io/blog/2020/03/21/2.0.0.html)
- Change default configuration for `trailingComma` to `es5` to match Prettier 2.0
- Change default configuration for `arrowParens` to `always` to match Prettier 2.0
- Change default configuration for `endOfLine` to `lf` to match Prettier 2.0
- Updated module dependencies
- Removed deprecated configuration options
## [3.20.0]
- No longer loads prettier when `requireConfig` is `true` and no config is found. (#1161)
- Minor logging improvements
## [3.19.0]
- Notifications only show when running formatter
- Removed logs for status bar events
## [3.18.0]
- Fixed a bug with the prettier output open command
- Upgraded module dependencies
## [3.17.0]
- Due to performance issues, global module resolution is now off by default. Enable by setting `prettier.resolveGlobalModules` to `true`
## [3.16.0]
- Show error when prettier configuration file is invalid
- Removed unused debug tracer on module resolution
## [3.15.0]
- Always format untitled files, even when `requireConfig` setting is enabled
## [3.14.0]
- Fixed an issue with global module resolution
## [3.13.0]
- Added support for global module resolution
- Added setting `packageManager` to determine which package manager to use for global module resolution
- Fixed issue where unsaved HTML files were resolved as Angular
## [3.12.0]
- Reverted range filter on formatter registration due to problems, needs more investigation
- Added additional details to description of `requireConfiguration` option
## [3.11.0]
- Additional logging for errors loading config
- Updated status icon to not error states
## [3.10.0]
- Added setting `prettier.useEditorConfig` (defaults to `true`) to allow disabling resolving `.editorconfig` for Prettier config
- Added additional logging
- Added `pattern` filter to formatter registrations to avoid registering incorrectly on multi-workspace projects
- Removed some unused localization code
## [3.9.0]
- Improved error logging.
- Bumped dependencies and type definitions to latest
- More information in readme about configuration
## [3.8.0]
- Fixed issue where VS Code and local config where merged. If local config is present, only it will be used. [#1074](https://github.com/prettier/prettier-vscode/issues/1074)
## [3.7.0]
- Removed deprecation message from `requireConfig` (Was added by mistake). [#1056](https://github.com/prettier/prettier-vscode/issues/1056)
- Sets `resolveConfig: true` to allow parser overrides on [Prettier 1.19+](https://prettier.io/blog/2019/11/09/1.19.0.html#api). [#1067](https://github.com/prettier/prettier-vscode/issues/1067)
- Fix for finding local `prettier` module in packages located in `node_modules` dirs
- Added doc on what languages support range formatting
## [3.6.0]
- Added back status bar button
## [3.5.1]
- Add command `Prettier: Create Configuration File` to create a basic `.prettierrc` file
## [3.5.0]
- Fixed issue resolving user home files on mac. i.e. (`~/.prettierrc`) (#1045)
- Improved tests for config resolution
## [3.4.0]
- Adds back VS Code config
## [3.3.0]
- Bug fixes
- Change telemetry metric names
## [3.2.0]
- Removed support for Prettier versions older than 1.13.0.
- No longer bundling linters with extension - to use install them in your package.json.
- Use Prettier as default resolver of formatter instead of VS Code.
- Use Prettier to determine if a file is ignored or not instead of custom logic.
- Support for formatting of untitled files when the language is set by VS Code.
- Set file path config on format to assist with parser resolution.
- Less fallbacks - if you have local prettier installed it will always use that. Before if your local prettier didn't support things we would fall back to bundled prettier - this caused many errors and inconsistent behavior.
- Removed toolbar button.
- Deprecated linter configuration settings.
- Enhanced logging.
- Extension built with webpack.
- Memoize package path lookup to improve perf of repeated calls to same file.
- Shows error message when outdated versions of prettier are used.
- Refreshes modules without restart for cases where prettier version or plugins are installed locally.
- Registers `.graphql` files as `graphql` language in order to provide formatting. (#989)
- Ignore files are only read from the workspace root folder to behave the [same as prettier](https://github.com/prettier/prettier/issues/4081).
- Added configuration option `prettier.prettierPath` to override module resolution.
- Added configuration option `prettier.configPath` to override configuration file resolution.
## [2.3.0]
- Updated VS Code Version to 1.34.0
- Changed App Insights api key
## [2.2.0]
- Added App Insights telemetry to track feature usage.
## [2.1.0]
- Deprecated support for ESLint, TSLint, and Stylelint. [See documentation](https://github.com/prettier/prettier-vscode#linter-integration)
## [1.12.0]
- Fixed issue where error output was used before initialized (#918)
## [1.11.0]
- Localization support for `zh-cn` and `zh-tw`
- Fixed issue where text-fixtures were bundled in the extension.
## [1.10.0]
- Prettier [1.18](https://prettier.io/blog/2019/06/06/1.18.0.html)
- Docs now explain how to lint TypeScript code with ESLint.
- Improve supported language resolution with local Prettier instances
- Prettier Plugin Support
- prettier-eslint 9.0.0
## [1.9.0]
- Prettier [1.17](https://prettier.io/blog/2019/04/12/1.17.0.html)
- New setting `quoteProps`. (prettier 1.17)
## [1.8.0]
- Prettier [1.16](https://prettier.io/blog/2019/01/20/1.16.0.html)
- prettier-tslint 0.4.2
## [1.7.0]
- Validate the `"prettier"` key in `package.json` using the prettier settings schema
- Prettier [1.15](https://prettier.io/blog/2018/11/07/1.15.0.html)
- New options: jsxSingleQuote, htmlWhitespaceSensitivity and endOfLine (More info in readme).
## [1.6.0]
- disableLanguages only in User / Workspace settings (no more in folder settings).It allows to register formatters for every supported language.
- Prettier [1.14](https://prettier.io/blog/2018/07/29/1.14.0.html)
- New option: tslintIntegration (boolean) use `prettier-tslint` instead of `prettier`
## [1.5.0]
- Revert notification popup: remove it.
- fix parser inference
## [1.4.0]
- [prettier 1.13.4](https://prettier.io/blog/2018/05/27/1.13.0.html)
- prettier-stylelint 0.4.2
## [1.3.1]
- [prettier 1.12.1](https://prettier.io/blog/2018/04/11/1.12.0.html)
## [1.3.0]
- [prettier 1.12.0](https://prettier.io/blog/2018/04/11/1.12.0.html)
## [1.2.0]
- [Prettier 1.11.1](https://prettier.io/blog/2018/02/26/1.11.0.html)
## [1.1.3]
- Improve prettier resolution algorithm for monorepos
- prettier-eslint@8.8.1
- `vue` is now disabled by default. Opt-in by removing `vue` from disableLanguages setting
## [1.1.2]
- prettier-eslint@8.3.1 revert previous update
## [1.1.1]
- prettier-eslint@8.7.5
## [1.1.0]
- Disabling a language `disableLanguages` now allows to use an other formatter. NOT when disabling in a sub workspace folder (noop)
- Prettier 1.10, `vue` `jsonc` `postcss` support.
## [1.0.0]
- Prettier 1.9
- New option: requireConfig (boolean) Format only files which have a prettier config (.prettierrc, ...)
- Don't merge editor's options into prettier config
## [0.25.0]
- Multi-root support.
- Removed all `*Enable` settings, these are now inferred from Prettier itself. Use scoped `editor.formatOnSave` to disable formatting some languages on save.
(See README)
- Markdown support
- Prettier 1.8.2
## [0.24.0]
- new setting, ignorePath. Ignore files.
- Eslint now also runs on TypeScript files.
- new setting, stylelintIntegration. prettier + stylelint.
- Prettier 1.7
## [0.23.1]
- Prettier 1.6.1
## [0.23.0]
- Read configuration from files.
- Prettier 1.6
## [0.22.0]
- Changed Status bar: hide/show depending on active editor.
- Fix local resolution.
## [0.21.0]
- Reworked error messages. They are now in a dedicated output channel.
## [0.20.0]
- Prettier 1.5
- Added JSON and GraphQL formatting (Range formatting disabled)
- Disable range formatting with postcss parser (broken)
## [0.19.1]
- Fix sass language id (sass -> scss)
- Update prettier to 1.4.4
- Update prettier-eslint to 6.3.0
## [0.19.0]
- Option to select language ids prettier will run on.
- Prettier 1.4.2
## [0.18.0]
- Prettier 1.4
- Now also formats CSS and TypeScript
- Format Selection highly improved.
## [0.17.0]
- Bump dependencies.
- `jsx` language support in addition to `javascript` and `javascriptreact`.
## [0.16.0]
- New setting eslintIntegration. Use `prettier-eslint` under the hood.
## [0.14.0]
- Bundled with prettier 1.1.0
- New setting `useTabs`. (prettier 1.0)
- New setting `semi`. (prettier 1.0)
## [0.13.0]
- Local prettier has to be _explicitly_ installed (dependencies or devDependencies)
## [0.11.0]
- Resolve 'prettier' against formatted file. Nearest upward _node_modules/prettier_
## [0.10.0]
- New setting `jsxBracketSameLine`. (prettier 0.17.0)
- Changed `trailingComma` setting `['none', 'es5', 'all']` (prettier 0.19.0)
## [0.7.0]
- Removed `Prettier` action.
- Use vscode actions `Format Document` and `Format Selection`.
- Removed `prettier.formatOnSave` setting in favor of the more general setting `editor.formatOnSave`
- Deprecated `useFlowParser` setting. Introduced `parser` setting. (Since prettier 0.0.10)
## [0.1.0]
- Initial release

View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 Esben Petersen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -0,0 +1,331 @@
# Prettier Formatter for Visual Studio Code
[Prettier](https://prettier.io/) is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
<p align="center">
<em>
JavaScript
· TypeScript
· Flow
· JSX
· JSON
</em>
<br />
<em>
CSS
· SCSS
· Less
</em>
<br />
<em>
HTML
· Vue
· Angular
</em>
<br />
<em>
GraphQL
· Markdown
· YAML
</em>
<br />
<em>
<a href="https://prettier.io/docs/en/plugins.html">
Your favorite language?
</a>
</em>
</p>
<p align="center">
<a href="https://github.com/prettier/prettier-vscode/actions?query=workflow%3AMain">
<img alt="Build Status" src="https://github.com/prettier/prettier-vscode/workflows/Main/badge.svg?branch=main"></a>
<a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode">
<img alt="VS Code Marketplace Downloads" src="https://img.shields.io/visual-studio-marketplace/d/esbenp.prettier-vscode"></a>
<a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode">
<img alt="VS Code Marketplace Installs" src="https://img.shields.io/visual-studio-marketplace/i/esbenp.prettier-vscode"></a>
<a href="#badge">
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a>
<a href="https://twitter.com/PrettierCode">
<img alt="Follow Prettier on Twitter" src="https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier&style=flat-square"></a>
</p>
## Installation
Install through VS Code extensions. Search for `Prettier - Code formatter`
[Visual Studio Code Market Place: Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
Can also be installed in VS Code: Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
```
ext install esbenp.prettier-vscode
```
### Default Formatter
To ensure that this extension is used over other extensions you may have installed, be sure to set it as the default formatter in your VS Code settings. This setting can be set for all languages or by a specific language.
```json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
```
If you want to disable Prettier on a particular language you can either create a `.prettierignore` file or you can use VS Code's `editor.defaultFormatter` settings.
The following will use Prettier for all languages except Javascript.
```json
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": null
}
}
```
The following will use Prettier for only Javascript.
```json
{
"editor.defaultFormatter": null,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
```
Additionally, you can disable format on save for specific languages if you don't want them to be automatically formatted.
```json
{
"[javascript]": {
"editor.formatOnSave": false
}
}
```
### Prettier Resolution
This extension will use prettier from your project's local dependencies (recommended). When the `prettier.resolveGlobalModules` is set to `true` the extension can also attempt to resolve global modules. Should prettier not be installed locally with your project's dependencies or globally on the machine, the version of prettier that is bundled with the extension will be used.
To install prettier in your project and pin its version [as recommended](https://prettier.io/docs/en/install.html), run:
```
npm install prettier -D --save-exact
```
> NOTE: You will be prompted to confirm that you want the extension to load a Prettier module. This is done to ensure that you are not loading a module or script that is not trusted.
### Plugins
This extension supports [Prettier plugins](https://prettier.io/docs/en/plugins.html) when you are using a locally or globally resolved version of prettier. If you have Prettier and a plugin registered in your `package.json`, this extension will attempt to register the language and provide automatic code formatting for the built-in and plugin languages.
## Configuration
There are multiple options for configuring Prettier with this extension. You can use [VS Code settings](#prettier-settings), [prettier configuration files](https://prettier.io/docs/en/configuration.html), or an `.editorconfig` file. The VS Code settings are meant to be used as a fallback and are generally intended only for use on non-project files. **It is recommended that you always include a prettier configuration file in your project specifying all settings for your project.** This will ensure that no matter how you run prettier - from this extension, from the CLI, or from another IDE with Prettier, the same settings will get applied.
Using [Prettier Configuration files](https://prettier.io/docs/en/configuration.html) to set formatting options is the recommended approach. Options are searched recursively down from the file being formatted so if you want to apply prettier settings to your entire project simply set a configuration in the root. Settings can also be configured through VS Code - however, these settings will only apply while running the extension, not when running prettier through the command line.
### Configuring Default Options
Some users may not wish to create a new Prettier config for every project or use the VS Code settings. In order to set a default configuraiton, set [`prettier.configPath`](https://github.com/prettier/prettier-vscode#prettierconfigpath). However, be careful, if this is set this value will always be used and local configuration files will be ignored.
### Visual Studio Code Settings
You can use [VS Code settings](#prettier-settings) to configure prettier. Settings will be read from (listed by priority):
1. [Prettier configuration file](https://prettier.io/docs/en/configuration.html)
1. `.editorconfig`
1. Visual Studio Code Settings (Ignored if any other configuration is present)
> NOTE: If any local configuration file is present (i.e. `.prettierrc`) the VS Code settings will **NOT** be used.
## Usage
### Using Command Palette (CMD/CTRL + Shift + P)
```
1. CMD + Shift + P -> Format Document
OR
1. Select the text you want to Prettify
2. CMD + Shift + P -> Format Selection
```
### Keyboard Shortcuts
Visual Studio Code provides [default keyboard shortcuts](https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-reference) for code formatting. You can learn about these for each platform in the [VS Code documentation](https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-reference).
If you don't like the defaults, you can rebind `editor.action.formatDocument` and `editor.action.formatSelection` in the keyboard shortcuts menu of vscode.
### Format On Save
Respects `editor.formatOnSave` setting.
You can turn on format-on-save on a per-language basis by scoping the setting:
```json
// Set the default
"editor.formatOnSave": false,
// Enable per-language
"[javascript]": {
"editor.formatOnSave": true
}
```
### Format Selection
Format selection works on several languages depending on what Prettier itself supports. The following languages currently are supported:
```
javascript
javascriptreact
typescript
typescriptreact
json
graphql
```
### Format Document (Forced)
If you would like to format a document that is configured to be ignored by Prettier either because it is in a `.prettierignore` file or part of a normally excluded location like `node_modules`, you can run the command **Format Document (Forced)** to force the document to be formatted. Forced mode will also ignore any config for `requirePragma` allowing you to format files without the pragma comment present.
## Linter Integration
The recommended way of integrating with linters is to let Prettier do the formatting and configure the linter to not deal with formatting rules. You can find instructions on how to configure each linter on the Prettier docs site. You can then use each of the linting extensions as you normally would. For details refere to the [Prettier documentation](https://prettier.io/docs/en/integrating-with-linters.html).
## Workspace Trust
This extension utilizes VS Code [Workspace Trust](https://code.visualstudio.com/docs/editor/workspace-trust) features. When this extension is run on an untrusted workspace, it will only use the built in version of prettier. No plugins, local, or global modules will be supported. Additionally, certain settings are also restricted - see each setting for details.
## Settings
### Prettier Settings
All prettier options can be configured directly in this extension. These settings are used as a fallback when no configuration file is present in your project, see the [configuration](#configuration) section of this document for more details. For reference on the options see the [prettier documentation](https://prettier.io/docs/en/options.html).
> The default values of these configurations are always to their Prettier 2.0 defaults. In order to use defaults from earlier versions of prettier you must set them manually using your VS Code settings or local project configurations.
```
prettier.arrowParens
prettier.bracketSpacing
prettier.endOfLine
prettier.htmlWhitespaceSensitivity
prettier.insertPragma
prettier.jsxBracketSameLine
prettier.jsxSingleQuote
prettier.printWidth
prettier.proseWrap
prettier.quoteProps
prettier.requirePragma
prettier.semi
prettier.singleQuote
prettier.tabWidth
prettier.trailingComma
prettier.useTabs
prettier.vueIndentScriptAndStyle
prettier.embeddedLanguageFormatting
```
### Extension Settings
These settings are specific to VS Code and need to be set in the VS Code settings file. See the [documentation](https://code.visualstudio.com/docs/getstarted/settings) for how to do that.
#### prettier.enable (default: `true`)
Controls whether prettier is enabled or not. You must restart VS Code when you change this setting.
#### prettier.requireConfig (default: `false`)
Require a prettier configuration file to format files. Untitled files will still be formatted using the VS Code Prettier configuration even with this option set to `true`.
#### prettier.ignorePath (default: `.prettierignore`)
Supply the path to an ignore file such as `.gitignore` or `.prettierignore`.
Files which match will not be formatted. Set to `null` to not read ignore files.
**Note, if this is set, this value will always be used and local ignore files will be ignored.**
**Disabled on untrusted workspaces**
#### prettier.configPath
Supply a custom path to the prettier configuration file.
**Note, if this is set, this value will always be used and local configuration files will be ignored. A better option for global defaults is to put a `~/.prettierrc` file in your home directory.**
**Disabled on untrusted workspaces**
#### prettier.prettierPath
Supply a custom path to the prettier module. This path should be to the module folder, not the bin/script path. i.e. `./node_modules/prettier`, not `./bin/prettier`.
**Disabled on untrusted workspaces**
#### prettier.resolveGlobalModules (default: `false`)
When enabled, this extension will attempt to use global npm or yarn modules if local modules cannot be resolved.
> NOTE: This setting can have a negative performance impact, particularly on Windows when you have attached network drives. Only enable this if you must use global modules. It is recommended that you always use local modules when possible.
**Note: Disabling a language enabled in a parent folder will prevent formatting instead of letting any other formatter to run**
**Disabled on untrusted workspaces**
#### prettier.documentSelectors
A list of [glob patterns](https://code.visualstudio.com/api/references/vscode-api#GlobPattern) to register Prettier formatter. Typically these will be in the format of `**/*.abc` to tell this extension to register itself as the formatter for all files with the `abc` extension. This feature can be useful when you have [overrides](https://prettier.io/docs/en/configuration.html#configuration-overrides) set in your config file to map custom extensions to a parser.
It is likely will need to also update your prettier config. For example, if I register the following document selector by itself, Prettier still won't know what to do with that file. I either need a Prettier extension that formats `.abc` file format or I need to configure Prettier.
```json
{
"prettier.documentSelectors": ["**/*.abc"]
}
```
To tell Prettier how to format a file of type `.abc` I can set an override in the prettier config that makes this file type use the `babel` parser.
```json
{
"overrides": [
{
"files": "*.abc",
"options": {
"parser": "babel"
}
}
]
}
```
**Disabled on untrusted workspaces**
#### prettier.useEditorConfig (default: `true`)
Whether or not to take .editorconfig into account when parsing configuration. See the [prettier.resolveConfig docs](https://prettier.io/docs/en/api.html) for details.
**Disabled on untrusted workspaces (always false)**
#### prettier.withNodeModules (default: `false`)
Whether or not to process files in the `node_modules` folder.
**Disabled on untrusted workspaces**
## Error Messages
**Failed to load module. If you have prettier or plugins referenced in package.json, ensure you have run `npm install`**
When a `package.json` is present in your project and it contains prettier, plugins, or linter libraries this extension will attempt to load these modules from your `node_module` folder. If you see this error, it most likely means you need to run `npm install` or `yarn install` to install the packages in your `package.json`.
**Your project is configured to use an outdated version of prettier that cannot be used by this extension. Upgrade to the latest version of prettier.**
You must upgrade to a newer version of prettier.
**This workspace is not trusted. Using the bundled version of prettier.**
You must trust this workspace to use plugins and local/global modules. See: [Workspace Trust](https://code.visualstudio.com/docs/editor/workspace-trust)

View file

@ -0,0 +1,24 @@
vscode-go
The MIT License (MIT)
Original Work Copyright (c) 2015-2020 Microsoft Corporation
Current Work and Modifications Copyright (c) 2020-present The Go Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

@ -0,0 +1,9 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"properties": {
"prettier": {
"description": "Prettier configuration",
"$ref": "http://json.schemastore.org/prettierrc"
}
}
}

View file

@ -0,0 +1,423 @@
{
"name": "prettier-vscode",
"displayName": "Prettier - Code formatter",
"description": "Code formatter using prettier",
"version": "8.0.1",
"publisher": "esbenp",
"author": "Prettier <@prettiercode>",
"galleryBanner": {
"color": "#ffe04b",
"theme": "light"
},
"homepage": "https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode",
"repository": {
"type": "git",
"url": "https://github.com/prettier/prettier-vscode.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/prettier/prettier-vscode/issues"
},
"engines": {
"vscode": "^1.57.0"
},
"keywords": [
"multi-root ready",
"prettier",
"formatter",
"javascript",
"js",
"jsx",
"flow",
"typescript",
"ts",
"json",
"css",
"less",
"scss",
"styled-components",
"styled-jsx",
"markdown",
"md",
"commonmark",
"mdx",
"php",
"pug",
"ruby",
"swift",
"html",
"vue",
"angular",
"graphql",
"yaml",
"yml"
],
"categories": [
"Formatters"
],
"activationEvents": [
"onStartupFinished"
],
"icon": "icon.png",
"main": "./dist/extension",
"scripts": {
"clean": "node ./scripts/clean.js",
"lint": "eslint -c .eslintrc.js --ext .ts .",
"pretest": "yarn test-compile && cd test-fixtures/plugins && yarn install && cd ../outdated && yarn install && cd ../module && yarn install && cd ../specific-version && yarn install && cd ../explicit-dep && yarn install && cd implicit-dep && yarn install",
"prettier": "prettier --write '**/*.{ts,json,md,yml,js}'",
"test-compile": "yarn clean && tsc -p ./ && yarn webpack",
"test": "node ./out/test/runTests.js",
"version": "node ./scripts/version.js && git add CHANGELOG.md",
"vscode:prepublish": "webpack --mode production",
"watch": "tsc --watch -p ./",
"webpack-dev": "webpack --mode development --watch",
"webpack": "webpack --mode development",
"postinstall": "husky install"
},
"lint-staged": {
"**/*.{ts,json,md,yml,js}": [
"prettier --write"
],
"src/**/*.ts": [
"eslint -c .eslintrc.js --ext .ts ."
]
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/lodash": "^4.14.160",
"@types/mocha": "^8.0.0",
"@types/node": "14",
"@types/prettier": "^2.1.0",
"@types/resolve": "^1.17.0",
"@types/semver": "^7.3.1",
"@types/sinon": "^10.0.0",
"@types/vscode": "^1.57.0",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.1.0",
"glob": "^7.1.6",
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
"mocha": "^9.0.1",
"sinon": "^11.1.1",
"ts-loader": "^9.1.2",
"typescript": "^4.2.4",
"vsce": "^1.80.0",
"vscode-nls-dev": "^3.3.2",
"vscode-test": "^1.4.0",
"webpack": "^5.37.0",
"webpack-cli": "^4.2.0"
},
"dependencies": {
"find-up": "^5.0.0",
"prettier": "^2.3.1",
"resolve": "^1.17.0",
"semver": "^7.3.4",
"vscode-nls": "^5.0.0"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "%ext.capabilities.untrustedWorkspaces.description%",
"restrictedConfigurations": [
"prettier.documentSelectors",
"prettier.resolveGlobalModules",
"prettier.ignorePath",
"prettier.prettierPath",
"prettier.configPath",
"prettier.useEditorConfig",
"prettier.resolveGlobalModules",
"prettier.withNodeModules"
]
}
},
"contributes": {
"configuration": {
"type": "object",
"title": "%ext.config.title%",
"properties": {
"prettier.disableLanguages": {
"type": "array",
"items": {
"type": "string"
},
"deprecationMessage": "%ext.config.disableLanguagesDeprecation%",
"markdownDescription": "%ext.config.disableLanguages%",
"scope": "window"
},
"prettier.documentSelectors": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "%ext.config.documentSelectors%",
"scope": "window"
},
"prettier.enable": {
"type": "boolean",
"default": true,
"markdownDescription": "%ext.config.enable%",
"scope": "resource"
},
"prettier.requireConfig": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.requireConfig%",
"scope": "resource"
},
"prettier.resolveGlobalModules": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.resolveGlobalModules%",
"scope": "resource"
},
"prettier.withNodeModules": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.withNodeModules%",
"scope": "resource"
},
"prettier.packageManager": {
"scope": "resource",
"type": "string",
"enum": [
"npm",
"yarn",
"pnpm"
],
"default": "npm",
"deprecationMessage": "%ext.config.packageManagerDeprecation%",
"markdownDescription": "%ext.config.packageManager%"
},
"prettier.useEditorConfig": {
"type": "boolean",
"default": true,
"markdownDescription": "%ext.config.useEditorConfig%",
"scope": "resource"
},
"prettier.ignorePath": {
"type": "string",
"default": ".prettierignore",
"markdownDescription": "%ext.config.ignorePath%",
"scope": "resource"
},
"prettier.prettierPath": {
"type": "string",
"markdownDescription": "%ext.config.prettierPath%",
"scope": "resource"
},
"prettier.configPath": {
"type": "string",
"markdownDescription": "%ext.config.configPath%",
"scope": "resource"
},
"prettier.enableDebugLogs": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.enableDebugLogs%",
"scope": "resource"
},
"prettier.printWidth": {
"type": "integer",
"default": 80,
"markdownDescription": "%ext.config.printWidth%",
"scope": "resource"
},
"prettier.tabWidth": {
"type": "integer",
"default": 2,
"markdownDescription": "%ext.config.tabWidth%",
"scope": "resource"
},
"prettier.singleQuote": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.singleQuote%",
"scope": "resource"
},
"prettier.trailingComma": {
"type": "string",
"enum": [
"none",
"es5",
"all"
],
"default": "es5",
"markdownDescription": "%ext.config.trailingComma%",
"scope": "resource"
},
"prettier.bracketSpacing": {
"type": "boolean",
"default": true,
"markdownDescription": "%ext.config.bracketSpacing%",
"scope": "resource"
},
"prettier.jsxBracketSameLine": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.jsxBracketSameLine%",
"scope": "resource"
},
"prettier.semi": {
"type": "boolean",
"default": true,
"markdownDescription": "%ext.config.semi%",
"scope": "resource"
},
"prettier.requirePragma": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.requirePragma%",
"scope": "resource"
},
"prettier.insertPragma": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.insertPragma%",
"scope": "resource"
},
"prettier.useTabs": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.useTabs%",
"scope": "resource"
},
"prettier.proseWrap": {
"type": "string",
"enum": [
"preserve",
"always",
"never"
],
"default": "preserve",
"markdownDescription": "%ext.config.proseWrap%",
"scope": "resource"
},
"prettier.arrowParens": {
"type": "string",
"enum": [
"avoid",
"always"
],
"default": "always",
"markdownDescription": "%ext.config.arrowParens%",
"scope": "resource"
},
"prettier.jsxSingleQuote": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.jsxSingleQuote%",
"scope": "resource"
},
"prettier.htmlWhitespaceSensitivity": {
"type": "string",
"enum": [
"css",
"strict",
"ignore"
],
"default": "css",
"markdownDescription": "%ext.config.htmlWhitespaceSensitivity%",
"scope": "resource"
},
"prettier.vueIndentScriptAndStyle": {
"type": "boolean",
"default": false,
"markdownDescription": "%ext.config.vueIndentScriptAndStyle%",
"scope": "resource"
},
"prettier.endOfLine": {
"type": "string",
"enum": [
"auto",
"lf",
"crlf",
"cr"
],
"default": "lf",
"markdownDescription": "%ext.config.endOfLine%",
"scope": "resource"
},
"prettier.quoteProps": {
"type": "string",
"enum": [
"as-needed",
"consistent",
"preserve"
],
"default": "as-needed",
"markdownDescription": "%ext.config.quoteProps%",
"scope": "resource"
},
"prettier.embeddedLanguageFormatting": {
"type": "string",
"enum": [
"auto",
"off"
],
"default": "auto",
"markdownDescription": "%ext.config.embeddedLanguageFormatting%",
"scope": "resource"
}
}
},
"jsonValidation": [
{
"fileMatch": ".prettierrc",
"url": "http://json.schemastore.org/prettierrc"
},
{
"fileMatch": ".prettierrc.json",
"url": "http://json.schemastore.org/prettierrc"
},
{
"fileMatch": "package.json",
"url": "./package-json-schema.json"
}
],
"languages": [
{
"id": "json",
"filenames": [
".prettierrc"
]
},
{
"id": "ignore",
"filenames": [
".prettierignore"
]
},
{
"id": "graphql",
"extensions": [
".graphql"
]
},
{
"id": "vue",
"extensions": [
".vue"
]
}
],
"commands": [
{
"command": "prettier.createConfigFile",
"title": "%ext.command.createConfigFile.title%"
},
{
"command": "prettier.forceFormatDocument",
"title": "%ext.command.forceFormatDocument.title%",
"when": "editorFocus"
}
]
},
"__metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "d16f4e39-2ffb-44e3-9c0d-79d873570e3a",
"publisherDisplayName": "Prettier",
"installedTimestamp": 1627023508442
}
}

View file

@ -0,0 +1,40 @@
{
"ext.command.createConfigFile.title": "Prettier: Create Configuration File",
"ext.command.forceFormatDocument.title": "Format Document (Forced)",
"ext.config.arrowParens": "Include parentheses around a sole arrow function parameter",
"ext.config.bracketSpacing": "Controls the printing of spaces inside object literals",
"ext.config.configPath": "Path to the prettier configuration file",
"ext.config.disableLanguages": "A list of languages IDs to disable this extension on",
"ext.config.disableLanguagesDeprecation": "This feature is no longer supported. Instead, configure VS Code [default formatters](https://github.com/prettier/prettier-vscode#default-formatter) or use .prettierignore.",
"ext.config.documentSelectors": "A list of [glob patterns](https://code.visualstudio.com/api/references/vscode-api#GlobPattern) to register Prettier formatter",
"ext.config.endOfLine": "Specify the end of line used by prettier",
"ext.config.htmlWhitespaceSensitivity": "Specify the global whitespace sensitivity for HTML files.\n Valid options:\n- `css` - Respect the default value of CSS display property.\n- `strict` - Whitespaces are considered sensitive.\n- `ignore` - Whitespaces are considered insensitive.",
"ext.config.ignorePath": "Path to a .prettierignore file",
"ext.config.insertPragma": "Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier. This works well when used in tandem with the `--require-pragma` option. If there is already a docblock at the top of the file then this option will add a newline to it with the @format marker.",
"ext.config.jsxBracketSameLine": "If true, puts the `>` of a multi-line jsx element at the end of the last line instead of being alone on the next line",
"ext.config.jsxSingleQuote": "Use single quotes instead of double quotes in JSX",
"ext.config.packageManager": "The package manager you use to install node modules.",
"ext.config.packageManagerDeprecation": "Package manager is now automatically detected by VS Code. This setting is no longer used.",
"ext.config.parser": "Override the parser. You shouldn't have to change this setting.",
"ext.config.parserDeprecationMessage": "This setting is no longer supported. Use a prettier configuration file instead.",
"ext.config.prettierPath": "Path to the prettier module",
"ext.config.printWidth": "Fit code within this line limit",
"ext.config.proseWrap": "(Markdown) wrap prose over multiple lines",
"ext.config.quoteProps": "Change when properties in objects are quoted",
"ext.config.requireConfig": "Require a prettier configuration file to format. See [documentation for valid configuration files](https://prettier.io/docs/en/configuration.html).\n\n> _Note, untitled files will still be formatted using the VS Code prettier settings even when this setting is set._",
"ext.config.requirePragma": "Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful when gradually transitioning large, unformatted codebases to prettier.",
"ext.config.resolveGlobalModules": "When enabled, this extension will attempt to use global npm or yarn modules if local modules cannot be resolved.\n> _This setting can have a negative performance impact, particularly on Windows when you have attached network drives. Only enable this if you must use global modules._",
"ext.config.withNodeModules": "If true, this extension will process files in node_modules",
"ext.config.semi": "Whether to add a semicolon at the end of every line",
"ext.config.singleQuote": "If true, will use single instead of double quotes",
"ext.config.tabWidth": "Number of spaces it should use per tab",
"ext.config.title": "Prettier",
"ext.config.trailingComma": "Controls the printing of trailing commas wherever possible. Valid options:\n- `none` - No trailing commas\n- `es5` - Trailing commas where valid in ES5 (objects, arrays, etc)\n- `all` - Trailing commas wherever possible (function arguments)",
"ext.config.useEditorConfig": "Whether or not to take `.editorconfig` into account when parsing configuration. See the [prettier.resolveConfig](https://prettier.io/docs/en/api.html) docs for details.",
"ext.config.useTabs": "Indent lines with tabs",
"ext.config.vueIndentScriptAndStyle": "Whether or not to indent the code inside `<script>` and `<style>` tags in Vue files. Some people (like the creator of Vue) dont indent to save an indentation level, but this might break code folding in your editor.",
"ext.config.embeddedLanguageFormatting": "Control whether Prettier formats quoted code embedded in the file.",
"ext.config.enable": "Controls whether prettier is enabled or not.",
"ext.config.enableDebugLogs": "Enable debug logs for troubleshooting.",
"ext.capabilities.untrustedWorkspaces.description": "Only the built-in version of Prettier will be used when running in untrusted mode."
}

View file

@ -0,0 +1,21 @@
{
"ext.config.title": "Prettier - 代码格式化配置",
"ext.config.disableLanguages": "用于禁用此扩展的语言ID列表",
"ext.config.requireConfig": "需要 prettier configuration 来格式化",
"ext.config.ignorePath": ".prettierignore或类似文件的路径",
"ext.config.printWidth": "指定每行代码的最佳长度, 如果超出长度则换行。",
"ext.config.tabWidth": "每个制表符占用的空格数",
"ext.config.singleQuote": "如果为 true将使用单引号而不是双引号",
"ext.config.trailingComma": "尽可能控制尾随逗号的输出。\n有效选项\n'无' - 无尾随逗号\n' es5' - 在ES5中有效的尾随逗号对象数组等\n 'all' - 尾随逗号 尽可能(函数参数)",
"ext.config.bracketSpacing": "控制对象字面量的空格输出",
"ext.config.jsxBracketSameLine": "如果为 true则将多行jsx元素的 `>` 放在最后一行的末尾,而不是单独放在下一行",
"ext.config.parser": "覆盖解析器。 您不必更改此设置。",
"ext.config.semi": "是否在每行末尾添加分号",
"ext.config.useTabs": "使用制表符tab缩进",
"ext.config.proseWrap": "Markdown将散文包含在多行中",
"ext.config.arrowParens": "当箭头函数仅有一个参数时加上括号",
"ext.config.jsxSingleQuote": "在JSX中使用单引号而不是双引号",
"ext.config.htmlWhitespaceSensitivity": "指定HTML文件的全局空白区域敏感度。\n有效选项\n 'css' - 尊重CSS显示属性的默认值。 \n 'strict' - 空格被认为是敏感的。 \n 'ignore' - 空格被认为是不敏感的。",
"ext.config.endOfLine": "指定 prettier 的换行符",
"ext.config.quoteProps": "Change when properties in objects are quoted"
}

View file

@ -0,0 +1,21 @@
{
"ext.config.title": "Prettier - 代碼格式化配置",
"ext.config.disableLanguages": "用於禁用此擴展的語言ID列表",
"ext.config.requireConfig": "需要 'prettierconfig' 來格式化",
"ext.config.ignorePath": ".prettierignore或類似文件的路徑",
"ext.config.printWidth": "指定每行代碼的最佳長度, 如果超出長度則換行。",
"ext.config.tabWidth": "每個製表符佔用的空格數",
"ext.config.singleQuote": "如果為 true將使用單引號而不是雙引號",
"ext.config.trailingComma": "盡可能控制尾隨逗號的輸出。 \n有效選項\n'無' - 無尾隨逗號\n'es5' - 在ES5中有效的尾隨逗號對象數組等\n'all' - 尾隨逗號 盡可能(函數參數)",
"ext.config.bracketSpacing": "控制對象字面量的空格輸出",
"ext.config.jsxBracketSameLine": "如果為 true則將多行jsx元素的 `>` 放在最後一行的末尾,而不是單獨放在下一行",
"ext.config.parser": "覆蓋解析器。您不必更改此設置。",
"ext.config.semi": "是否在每行末尾添加分號",
"ext.config.useTabs": "使用製表符tab縮進",
"ext.config.proseWrap": "Markdown將散文包含在多行中",
"ext.config.arrowParens": "當箭頭函數僅有一個參數時加上括號",
"ext.config.jsxSingleQuote": "在JSX中使用單引號而不是雙引號",
"ext.config.htmlWhitespaceSensitivity": "指定HTML文件的全局空白區域敏感度。 \n有效選項\n'css' - 尊重CSS顯示屬性的默認值。 \n'strict' - 空格被認為是敏感的。 \n'ignore' - 空格被認為是不敏感的。",
"ext.config.endOfLine": "指定 prettier 的換行符",
"ext.config.quoteProps": "Change when properties in objects are quoted"
}