| Key | Action |
|---|---|
F9 / Shift+F9 |
Run / Compile |
F10 / Shift+F10 |
Run / Compile with parameters |
F5 |
Start the debugger (VS Code key) |
F1 |
Help for the word at the cursor |
Ctrl+/ |
Comment or uncomment lines (column 1) |
Ctrl+K Ctrl+C / Ctrl+K Ctrl+U |
Add / remove line comment |
Shift+Alt+A |
Block comment ($onText / $offText) |
Ctrl+B |
Jump to the matching bracket |
Ctrl+Shift+R |
Insert a new section header |
On macOS use Cmd for Ctrl. F9, Shift+F9, F10 and Shift+F10 work in GAMS files and are off while you debug.
Some of these keys replace VS Code keys in GAMS files (F9, F10, F1, Ctrl+/, Ctrl+B, Ctrl+Shift+R and others). To get one back: set gams.help.f1 to false for F1, set gams.editor.studioParentheses to false for Ctrl+B, or remove any key in Keyboard Shortcuts (Ctrl+K Ctrl+S). See Settings and keys.
Key settings
All settings are listed in Settings and keys.
| Setting | Meaning |
|---|---|
gams.sysdir |
Your GAMS folder. Empty means auto-detect. |
gams.defaultParameters |
Parameters added to every run, for example ["lo=3"]. |
gams.showLogOnRun |
Open the log when a run starts (default on). |
gams.openListingAfterRun |
Open the .lst file after a run (default off). |
gams.studioColors |
Use GAMS Studio colors, for example auto (default off). |
gams.updateReferencesOnSave |
Keep definitions current by compiling on save (default off, uses a license session). |
Upgrading from 0.1.x
- Your settings are copied once:
GAMS.executablePathtogams.sysdir,GAMS.commandLineParameterstogams.defaultParameters,GAMS.idePathandGAMS.ideArgumentstogams.studio.pathandgams.studio.arguments. Old settings stay. - The run-project settings (
GAMS.runProject,GAMS.runBatchPath,GAMS.projectLst,GAMS.projectGDX,GAMS.terminalCwd) still work. They are deprecated. Main files, projects and tasks replace them. F10was "show listing" and is now "Run with parameters".Shift+F9was "run with GDX" and is now "Compile".- The license changed from Apache-2.0 to GPL-3.0-or-later. More in the CHANGELOG.
Acknowledgements
- GAMS Studio by GAMS Development Corp. is the model for many features and for the colors.
- The GDX reader and writer are derived from GAMS-dev/gdx (MIT).
- The GAMS Connect schemas are generated from the agent schemas of the
gamsapiPython package (MIT; PyPI, also shipped with GAMS). - Licenses of all bundled components: THIRD_PARTY_NOTICES.md.
Author
Maintained by Eunseong Park. Report problems at GitHub Issues.
License
GPL-3.0-or-later. See LICENSE.
GAMS is a trademark of GAMS Development Corp. This extension is community-maintained and is not affiliated with or endorsed by GAMS Development Corp. A separately installed and licensed GAMS is required to run models.


