Skip to content

Instantly share code, notes, and snippets.

@AlfishSoftware
Last active May 10, 2023 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlfishSoftware/32c7f297615004cefdc156e5fb212746 to your computer and use it in GitHub Desktop.
Save AlfishSoftware/32c7f297615004cefdc156e5fb212746 to your computer and use it in GitHub Desktop.
Semanticolors Dark Theme for VSCode. It's a bonus with https://alfish.itch.io/godot-files-vscode

Semanticolors

Errors are red, types are blue. Comments are gray, so they don't confuse you.

A dark theme for Code that uses semantic colors consistently.

It should work well on most languages, but it's particularly great for Godot Files (assets, GDScript, GDShader) and for languages like Javascript/Java/C#/C++, as well as formats like JSON/XML/INI and its derivatives. It has special colors for JSON with Comments (to help easily distinguish it from strict JSON). It's also compatible with Rainbow CSV.

Comments are gray so they can be visually ignored easily.

In Programming Languages

Colors vary in rainbow order, with semantics going from specific to broad, as per the image below.

Color palette for code semantics

Keywords are bold and usually red, unless a different color fits better semantically. For example:

  • int is colored like a type
  • true is colored like a constant
  • new is colored like a function

Note that other semantics can also change style for better contextual distinction, e.g., static identifiers may become bold too - but this shouldn't cause confusion with keywords because those are well-known and clear by the context.

@AlfishSoftware
Copy link
Author

AlfishSoftware commented May 9, 2023

Semanticolors

code --install-extension path/to/file.vsix

Feel free to comment here if you have any issues. Subscribe to be notified on updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment