Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>NetBeans EarthNew to Visual Studio Code? Get it now.
NetBeans Earth

NetBeans Earth

r11s

|
1 install
| (0) | Free
A light VS Code theme ported from the "Earth" editor profile of Apache NetBeans: white background, dark blue keywords, earthy orange and olive accents.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NetBeans Earth

A light color theme for Visual Studio Code, ported from the “Earth” fonts-and-colors profile of Apache NetBeans: white background, black text, dark blue keywords, orange strings, olive fields and a blue-grey for comments.

Works with Visual Studio Code and VSCodium (the latter via Open VSX).

This is an unofficial port. It is not affiliated with or endorsed by the Apache Software Foundation.


🎨 Colors

The syntax colors come straight from NetBeansEarth-*.xml in the Apache NetBeans sources (ide/defaults).

Element Color (hex) Style
Text, identifiers, operators #000000
Keywords #0a0a7c control flow bold, others regular
Comments #748ab0 Javadoc tags bold
Strings, numbers #cc7800 escapes bold
Characters #e08400
Fields #989800 declarations bold, static italic
Parameters #337d6c declarations bold
Unused code #999999
Declarations (types, methods) #000000 bold
Deprecated strikethrough

HTML, XML and CSS follow the same palette (tags #0a0a7c, attribute values #989800, CSS selectors #007c00, properties #0000ff, values #cc7800).


🪟 UI colors

The profile only defines syntax colors. Everything else was measured from a NetBeans 32 screenshot:

  • selection #b5cce3, current line #f1f1da, occurrences #eceba3, matching bracket #4bff0f
  • gutter #e9e8e2, indent guides #d3d3d3, right margin #ffa8a8
  • window, status bar and menus #f2f2f2, tab strip #bcc7d1, list selection #d3d3d3

Search matches, completion popups, hovers, buttons, diff colors and the terminal are derived from this palette and are not copies of NetBeans.


⚠️ Limitations

  • Italic static, bold declarations and the grey “unused” look rely on semantic highlighting, which needs a language server (for example the Java extension). Without it, only the TextMate rules apply.
  • NetBeans fills embedded CSS and JavaScript in HTML with a light green background. VS Code cannot do that.
  • NetBeans makes the first sentence of a Javadoc comment bold. VS Code cannot do that either.
  • NetBeans draws a right margin at column 120. In VS Code add "editor.rulers": [120] to see it in the theme color.
  • Only one variant exists, because bold is part of the Earth look.

🎛 Customizing

Every color can be changed without editing the theme. Add this to your settings.json to override values for NetBeans Earth only:

"workbench.colorCustomizations": {
  "[NetBeans Earth]": {
    "editor.background": "#fafaf5",
    "editorGutter.background": "#ecebe4",
    "editor.lineHighlightBackground": "#f1f1da"
  }
},
"editor.tokenColorCustomizations": {
  "[NetBeans Earth]": {
    "comments": "#5f7396",
    "strings": "#b36b00"
  }
}
  • editor.background sets the editor background (default #ffffff). The line-number gutter has its own color, editorGutter.background (default #e9e8e2).
  • The default accents (comments, strings, fields) are light on white. A slightly darker value, as above, makes them easier to read.
  • The key names are listed in the VS Code theme color reference. In the Command Palette, Developer: Inspect Editor Tokens and Scopes shows which scope or color applies to the text under the cursor.

🧪 Test files

The repository contains short sample files in tests/ (about 40 lines each) so you can check the theme in your own languages: Java, Go, Python, Ruby, C, C++, JavaScript, Kotlin, Pascal, COBOL, HTML (with CSS and JavaScript) and XML. Each file uses the same elements: comments, numbers, strings with escapes, type and function declarations, control flow and constants.

  • To see only the TextMate colors that everyone gets, set "editor.semanticHighlighting.enabled": false. Set it back to "configuredByTheme" to see the extra styling that a language server adds.

  • VS Code has no built-in grammar for Kotlin, Pascal and COBOL. Install an extension that provides one, otherwise these files show as plain text:

    Language Extension ID Provides
    Kotlin mathiasfrohlich.Kotlin syntax highlighting only
    Kotlin JetBrains.kotlin-server language server (Kotlin by JetBrains)
    Pascal alefragnani.pascal syntax highlighting
    COBOL bitlang.cobol syntax highlighting

    The colors in these languages depend on the scopes the extension's grammar provides. A sparse grammar gives the theme little to color. On VSCodium the extensions are available only if they are published on Open VSX.


🛠 Installation

  1. Install the extension:
    • VS Code: from the Visual Studio Marketplace, or code --install-extension netbeans-earth-theme-1.0.3.vsix.
    • VSCodium: from Open VSX (built into VSCodium), or codium --install-extension netbeans-earth-theme-1.0.3.vsix.
  2. Open Preferences → Color Theme and choose NetBeans Earth.

📜 License

Licensed under the Apache License 2.0, like Apache NetBeans. See LICENSE and NOTICE.

Apache, Apache NetBeans and NetBeans are trademarks of the Apache Software Foundation.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft