Skip to content

MrSimbax/vscode-colobot-extension

Repository files navigation

colobot-extension

VS Code extension for Colobot developers and modders.

Features

  • Unique Colobot color theme
  • Language grammars for:
    • CBOT source code
    • Colobot scene files
    • SatCom help files
  • Language auto-detection based on unofficial (yet) file extensions (cbot, satcom, scene)
  • Language auto-detection based on first lines in .txt files. (See Known issues)
  • Automatically set editor settings for CBOT and SatCom
  • CBOT and SatCom snippets

Screenshots

Syntax Highlighting with Colobot Theme

Screenshot

Syntax Highlighting with Dark+ Theme

Screenshot

Syntax Highlighting with Light+ Theme

Screenshot

Snippets for CBOT

Animation

Snippets for SatCom

Animation

Known Issues

First line detection

The languages can't be detected automatically based on the first line in .txt file, as VS Code currently doesn't provide ability to do that (see this issue).

Grammar not working well for certain color theme

The grammars were written mostly for the default Code themes and the Colobot theme. The syntax highlighting should be ok for most decent themes but may have some little issues like the same color for two different things (it may actually happen even in the default themes). Unfortunately, it's impossible to make it work perfectly for every color theme in the marketplace, but hopefully it's not that big of a problem.

Release Notes

See CHANGELOD.md.

License

See LICENSE.md.