microsoft / microsoft/vscode-java-pack
Feature request: Improve output console color scheme
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 352
- Fork
- 166
- Merge trung bình
- 17 giờ 47 phút
- Pull request đã merge (30 ngày)
- 32
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi cách Java extension xử lý Spring Boot launch configurations và cách các đối số từ launch.json được tập hợp; so sánh các cách tiếp cận application.properties và launch.json được mô tả ở đây. Xác định hành vi bật/tắt của settings.json, sau đó xác minh rằng Spring Boot project nhận ANSI output theo mặc định và tùy chọn này có thể tắt nó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java, spring-boot, typescript, vscode
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100