jhipster / jhipster/prettier-java

How to enable in vscode

Aperta
#706 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
1.2k
Fork
120
Merge medio
1g 14h
PR unite (30g)
27

Descrizione

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 ?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the setup described in the issue: install prettier and prettier-plugin-java, enable the Prettier VS Code extension, and set the Java default formatter in settings.json. Verify whether the plugin appears in “Format Document With...” and document the complete working steps, including what successful Java formatting looks like.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, vscode
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.