redhat-developer / redhat-developer/vscode-java
Comment formatting not consistent with Eclipse with same xml profile
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.3k
- Forks
- 546
- Ø Merge
- 20 Std. 1 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
I'm using an Eclipse format XML profile to indent/format my java code in VS Code. For comments, the same profile is generating different results.
Environment
- Operating System: macOS Catalina 10.15.4
- JDK version: OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_252-b09)
- Visual Studio Code version: 1.44.2
- Java extension version: 0.60.0 (April 16, 2020)
Steps To Reproduce
Settings for Java format:
Eclipse formatting profile from the settings above (unzip to get the XML profile):
eclipse-java-formatter.xml.zip
- Paste the following code snippet in a Java file.
/**
* Javadoc headline describing the method
*
* Detailed description:
* - point 1
* - point 2
* - point 3
*
* @param param1
* @param param2
*
* @return something
*/
- Select the code snippet and run
Format Selectionfrom the command palette.
Current Result
Expected Result
Eclipse output with the same profile:
Additional Informations
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Unterschied bei der Formatierung von Java-Kommentaren in VS Code mit dem bereitgestellten Eclipse-XML-Profil und dem Javadoc-Snippet unter Verwendung von Format Selection zu reproduzieren. Vergleiche das aktuelle Ergebnis mit dem erwarteten Ergebnis und den Eclipse-Screenshots; abgeschlossen bedeutet, dass die formatierten Kommentare der Eclipse-Ausgabe für dieses Profil entsprechen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100