GMAT Script is a specialized VS Code extension designed to enhance productivity for GMAT test preparation and practice. This tool helps users efficiently work with GMAT-related scripts, formulas, and practice problems within Visual Studio Code.
A Visual Studio Code extension that provides development tools for working with GMAT (General Mission Analysis Tool) script files. This extension enhances your GMAT scripting experience with syntax highlighting, code completion, hover information, snippets, and execution capabilities.
This extension enhances GMAT script development with several powerful features:
- Dedicated grammar for
.scriptfiles - Color coding for GMAT keywords, commands, and parameters
![Syntax Highlighting]
- Command autocompletion
- Object type suggestions after
Createstatements - Property autocompletion based on object types
- Variable reference suggestions
![Code Completion]
- Detailed documentation when hovering over:
- GMAT commands
- Object types
- Object properties
- Variables
![Hover Information]
- Comprehensive collection of snippets for common GMAT objects:
- Spacecraft configurations (Keplerian and Cartesian)
- Force models
- Propagators
- Burns (Impulsive and Finite)
- Tanks and thrusters
- Visualization resources (OrbitView, XYPlot)
- Locators (Contact, Eclipse)
- Loops and control structures
- And many more
![Code Snippets]
- Run GMAT scripts directly from VS Code
- View execution output in a dedicated channel
- Configure path to GMAT executable
![Script Execution]
- Basic static analysis of GMAT scripts
- Count of commands, variables, and comments
- List of created objects
![Script Analysis]
- Install the extension from the VS Code marketplace
- Configure the path to your GMAT executable:
- Use command
GMAT: Configure Executable Path - Or set
gmat-script.gmatExecutablePathin settings
- Use command
- Visual Studio Code 1.99.0 or newer
- GMAT installed on your system
- Configure the path to your GMAT executable to use the run command
- Open a
.scriptfile in VS Code - Use keyboard shortcut:
Ctrl+Shift+R(Windows/Linux) orCmd+Shift+R(Mac) - Or use command:
GMAT: Run Script - Or right-click in editor and select
GMAT: Run Script
- Use keyboard shortcut:
Ctrl+Shift+A(Windows/Linux) orCmd+Shift+A(Mac) - Or use command:
GMAT: Analyze Script - Or right-click in editor and select
GMAT: Analyze Script
Type snippet prefixes (like create-spacecraft, propagate, etc.) to access predefined code blocks.
This extension contributes the following settings:
gmat-script.gmatExecutablePath: Path to the GMAT executable
Calling out known issues can help limit users opening duplicate issues against your extension.
- This is an initial release (0.0.1) and may have bugs or incomplete features
- Detailed analysis of GMAT scripts is limited
Initial release of GMAT Script extension with the following features:
- Syntax highlighting for GMAT script files
- IntelliSense and autocompletion for GMAT commands and objects
- Hover documentation for commands and properties
- Code snippets for common GMAT objects and patterns
- Run GMAT scripts directly from VS Code
- Basic script analysis capabilities
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
Moussa FALL (@kallah94)
Enjoy!