jhipster / jhipster/prettier-java

How to enable in vscode

Open
#706 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
120
Avg merge
1d 14h
Merged PRs (30d)
27

Description

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](https://github.com/user-attachments/assets/333cb01f-2843-48fd-945b-500bc9d4b7c2)

How to link the plugin to formatting action ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.