Skip to content

Talv/vscode-sc2-galaxy

Repository files navigation

StarCraft 2 Galaxy Script IDE

Rich set of utilities providing IDE like capabilities for StarCraft 2 Galaxy Script language, as Visual Studio Code extension.

Features

  • Code syntax highlighting:
  • Basic completion snippets.
  • Real time code diagnostics - syntax validation, as well as typechecking.
  • Context aware code completions.
  • Signature help for functions.
  • Document and workspace symbols navigation list.
  • Symbol definitions provider (goto click). <kbd>Ctrl</kbd>+Click on identifier will go to its declaration.
  • Tooltips when hovering over symbol identifiers.
  • Find all symbol references
  • Symbol rename command
  • Indexing of Trigger scheme files to extract elements metadata and associate it with their auto-generated symbols. This allows it to provide localized documentation, aswell better code completions for things like presets.
  • Indexing of game data *Data.xml files. To provide code completions of gamelink types. (i.e. complete list of available units will be provided for functions such as UnitCreate).

Notice: Actual indexing logic is provided by plaxtony library. This extension is merely a wrapper.

Useful links

  1. SC2 Editor workflow tips
  2. Getting Started with SC2 development

Planned features

  • Format code command (pretty print)

Showcase

Real time code diagnostics

diagnostics

typechecker

Code completions

code-completions

Prioritizing preset constants when valid (function must declare preset type within Triggers metadata).

presets

Gamelinks suggestions (units, effects etc.)

gamelinks

Function signature information

signature-help

Goto definition

goto-definition

Symbol navigation

symbol-navigation

Hover tooltips

tooltip

Find all symbol references

find-references

Rename symbol

picture missing