Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom syntax coloring / Use same colors in VSCode and Godot #2

Closed
LaraSQP opened this issue Jun 6, 2024 · 2 comments
Closed

Custom syntax coloring / Use same colors in VSCode and Godot #2

LaraSQP opened this issue Jun 6, 2024 · 2 comments
Labels
question Request for information

Comments

@LaraSQP
Copy link

LaraSQP commented Jun 6, 2024

Thank you for developing this extension and making it available to all.

I have installed both Godot Files and godot-tools but the result regarding syntax highlighting is awful.

This is what a simple script looks in the Godot editor:

image

And this is what the same script looks like in VSCode:

image

I would be happy if the syntax coloring in VSCode were identical to Godot's. I just want to use VSCode.

Is there a configuration file where you can choose which colors to use with what?

Thanks again.

@AlfishSoftware
Copy link
Owner

AlfishSoftware commented Jun 6, 2024

Why you get different colors from the screenshots

This extension parses the files, providing the syntax coloring "definitions" in the most specific way possible to allow good semantic coloring by theme providers.
The specific colors assigned to these definitions are provided by the themes in VSCode.
This extension itself doesn't include a theme.

How to customize syntax coloring

You can change themes using VSCode's ⚙️ gear button.
You can also install new themes using extensions, which I recommend (built-in VSCode themes are not very advanced).

For example, if you want VSCode to look like Godot, you can search "godot theme" in the marketplace (or in the extensions search) and see if you can find one that works well for you.
It's also possible to do the opposite (making a theme in Godot that looks like VSCode).

You can also learn more about VSCode themes in their docs if you like advanced stuff, such as making your own color overrides.

How to get the same colors as in the screenshots

If you like the theme on the screenshots, it's currently available only here as a supporter bonus.
It includes a corresponding theme for Godot, so you can have a consistent experience on both IDEs
.

The theme is called Semanticolors Dark, as there is a logic for every color. The VSCode theme is very high-quality, and was designed specially for Godot and C#, but should be fairly compatible with most languages.

@LaraSQP
Copy link
Author

LaraSQP commented Jun 6, 2024

Thank you very, very much for the quick and detailed reply.

Good karma to you.

@LaraSQP LaraSQP closed this as completed Jun 6, 2024
@AlfishSoftware AlfishSoftware added the question Request for information label Oct 28, 2024
@AlfishSoftware AlfishSoftware changed the title How to customize syntax coloring Custom syntax coloring / Using the same colors in VSCode and Godot Oct 28, 2024
@AlfishSoftware AlfishSoftware pinned this issue Oct 28, 2024
@AlfishSoftware AlfishSoftware changed the title Custom syntax coloring / Using the same colors in VSCode and Godot Custom syntax coloring / Use same colors in VSCode and Godot Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for information
Projects
None yet
Development

No branches or pull requests

2 participants