@scriptify-vscode/prettier
v1.0.2
Published
This script is designed to be used with the VS Code extension ["Scriptify"](https://marketplace.visualstudio.com/items?itemName=scriptify.scriptify). It allows you to transform code using the Prettier code formatter with customizable parser options.
Downloads
1
Readme
@scriptify-vscode/prettier
This script is designed to be used with the VS Code extension "Scriptify". It allows you to transform code using the Prettier code formatter with customizable parser options.
Configuration
Make sure to have a .prettierrc.json
file in your workspace directory if you want to use custom Prettier configuration options. The script will automatically search for this file in the workspace.
Example
- Open a file in your VS Code editor.
- Select the code you want to transform.
- Run the script using the "Scriptify" extension.
- A quick pick menu will appear with a list of available Prettier parsers.
- Select a parser from the list.
- The script will apply the Prettier formatter to the selected code using the selected parser and any custom configuration options from the
.prettierrc.json
file. - The transformed code will be displayed in the VS Code output channel.