Writing GAMS Code
GAMS-IDE provides several features to assist you in writing GAMS code efficiently and correctly.
Model-Aware Autocomplete
GAMS-IDE analyzes your entire model structure to provide intelligent suggestions.
- Symbols: Type a few characters of a set, parameter, variable, or equation name to see suggestions.
- Domains: When defining a parameter or using a symbol, the extension suggests valid sets and elements for that specific domain position.

Syntax Highlighting
The extension provides comprehensive syntax highlighting for GAMS files (.gms, .inc, etc.), making code easier to read and understand.
Snippets
Common GAMS structures (like loop, if, table, etc.) are available as snippets. Type the keyword and press Tab to expand the snippet template.