redhat-developer / redhat-developer/vscode-java
There is no formatter for 'java' files installed
@testforstephen ci sta già lavorando.
Dal 18/12/2020.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
Hello,
I try to format my java code with visual code.
I have try without configuration (for a default format) > and I have the message : There is no formatter for 'java' files installed
I have tried to follow https://github.com/redhat-developer/vscode-java/wiki/Formatter-settings >> then idem
Environment
- Windows 10
- JDK 12
- 1.51.1
- Java extension version: v0.12.0
Steps To Reproduce
- Install visual code
- Init java project (with gradle) then create a new class
- CTRL + P > format document > There is no formatter for 'java' files installed
As said on https://github.com/redhat-developer/vscode-java/issues/1497
I have tried added "[java]": {"editor.defaultFormatter": "redhat.java"} on settings.json
(Precision : My starting java server is starting and loop at 62% Starting java language server - build parameterized mode .... gradle.eclipse .....)
(will work when I desactivate Gradle importing project (aka "java.import.gradle.enabled": false )
Setting.json
{
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.exclude": {
"/.classpath": true,
"/.project": true,
"/.settings": true,
"/.factorypath": true
},
"[java]": {"editor.defaultFormatter": "redhat.java"},
"java.configuration.runtimes": [
{
"name": "JavaSE-1.8",
"path": "C:\Program Files\Java\jdk1.8.0_261"
}
],
"java.home": "C:\Program Files\Java\jdk-12.0.2",
"java.help.firstView": "gettingStarted",
"java.project.importOnFirstTimeStartup": "automatic",
"explorer.compactFolders": false,
"workbench.enableExperiments": false
}
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.