Skip to content

How to enable in vscode #706

@stephan-klein

Description

@stephan-klein

I read all the guides still im puzzled how to enable the plugin in vscode.

I execute

npm install --save-dev --save-exact prettier prettier-plugin-java

I have the prettier extension installed.

and now ? how can i enable the formatting ? Still my other java formatter is executed by default. Format Document with... action does not detect it.

when i put

"[java]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },

in settings.json

i get

image

How to link the plugin to formatting action ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions