Skip to content

Java primitive types treated as identifiers, not keywords #2986

Description

@dgolub

When editing Java in Visual Studio Code, primitive types such as boolean, int, long, etc. are shown in black as identifiers. They should be shown in blue as keywords.

Activity

  1. aeschli commented on Feb 22, 2016

    @aeschli
    Contributor

    I think the current behavior is correct. boolean, int, long, get the color for type references. I recommend you to switch to the Dark+/Light+ themes where boolean, int, long, will be turquoise.
    The Dark/lIght Visual Studio themes have no special color for types, therefore it is the default foreground color.

  2. dgolub commented on Feb 22, 2016

    @dgolub
    Author

    Now that I look at how this is handled for other programming languages, I see that it is not a Java-specific issue but rather a discrepancy between how syntax highlighting is done in Visual Studio Code vs. regular Visual Studio. If you open a C++ or C# file in Visual Studio, primitive data types are colored in dark blue as keywords, not in light blue like other types such as classes, enumerations, etc. The behavior from Visual Studio Code is inconsistent.

  3. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

themesColor theme issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions