Skip to content

Improve Syntax Highlighting: Distinguish Errors/Warnings and Java Method Types #239

@gracesor

Description

@gracesor

Is there an existing issue outlining your improvement?

  • I have searched the existing issues and my improvement has not been raised yet.

What would you like to see added and/or changed?

I would like to suggest two improvements to the syntax highlighting to enhance code readability.

Problem 1: Error and Warning Messages are Not Easily Distinguishable
Currently, the colors used for error and warning squiggles in the editor are very similar. This makes it easy to misread a warning as an error, or vice versa, at a quick glance.

Problem 2: Inability to Distinguish Java Object Methods from Static Methods
In Java code, there is currently no visual distinction between instance methods and static methods in the code completion popup and the editor. This can lead to confusion when scanning code.

Proposed Solution:
For Problem 1, please use more distinct colors for error and warning underlines (e.g., a strong red for errors and a distinct orange or yellow for warnings).

For Problem 2, please add a visual cue to differentiate the method types. A common and effective convention is:

Static Methods: Displayed in italics.

Instance Methods: Displayed in the regular, upright font.

This small change would make it much easier to identify the type of method without having to read its context or documentation.

Thank you for considering these improvements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions