microsoft / microsoft/vscode-java-pack
Feature request: Improve output console color scheme
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 352
- Forks
- 166
- Ø Merge
- 17 Std. 47 Min.
- Gemergte PRs (30 T.)
- 32
Beschreibung
For Spring Boot projects, the debug output console should have a nice coloring theme by default, which is not the case currently.
With default settings, all text is a single color which is not very readable.
There is a related StackOverflow question regarding this: https://stackoverflow.com/questions/62280290/provide-color-theme-to-the-java-process-console-in-the-terminal-of-vscode-whil
Currently, there are two (easy, but not scalable) ways how to achieve the desired coloring:
- Add
spring.output.ansi.enabled=ALWAYStoapplication.propertiesfile -> The issue with this approach is that it has to be set up for each project and it just adds unnecessary complexity to application.properties. - Add
"args": "--spring.output.ansi.enabled=ALWAYS"in launch.json -> This issue with this approach is that it also needs to be set up per-project basis and it is not so easy to share configuration as .vscode directory is not within version control scope.
Proposed Solution
I suggest a solution that VS Code pass "args": "--spring.output.ansi.enabled=ALWAYS" by default for Spring Boot projects. There should be an option to control it (on/off) maybe within settings.json
Before

After

@nickzhums Please review.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
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 nachzuverfolgen, wie die Java extension Spring Boot launch configurations verarbeitet und wie Argumente aus launch.json zusammengestellt werden; vergleiche die hier beschriebenen Ansätze mit application.properties und launch.json. Lege das Ein-/Aus-Verhalten von settings.json fest und überprüfe anschließend, dass ein Spring Boot project standardmäßig ANSI output erhält und dass die Option dies deaktivieren kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, spring-boot, typescript, vscode
- Bereich
- developer-experience, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100