prettier/prettier-vscode

How to set the `rangeStart` configuration for the `prettier-vscode` extension in VS Code?

wangrongding opened this issue · 3 comments

How to set the rangeStart configuration for the prettier-vscode extension in VS Code? Currently, it formats the entire file by default. Sometimes I just want to format the selected code by using Cmd + K & Cmd + F.

It can be achieved in the config configuration file in the project, but sometimes there is no such configuration in new projects, and I just want to have a default configuration option in vscode.

image

Currently, there is no such configuration in the configuration items of prettier-vscode.

image

Range formatting is not supported