Skip to main content
2 min read

Open Custom Modules in IDE

Open in IDE

The Open in IDE button (top right corner) lets you seamlessly transfer your Terraform module code from this visual interface into a full development environment.

Preview vs Open in IDE

Preview (from the Module Catalog or an appStack) opens a read-only code view in StackGen. Open in IDE launches VS Code (or another supported editor) so you can edit, lint, and commit locally. For read-only inspection, see Module Preview.

Why Use Open in IDE​

  • For advanced editing (refactoring, search and replace, custom scripts).
  • To use Terraform extensions, linters, and formatters.
  • To integrate with source control (Git).
  • To work on module code in a full IDE before you publish.

How It Works​

When you click Open in IDE, you get options to open your module project in an external code editor:

  1. Opens your Module in VSCode: Instantly launches Visual Studio Code, the popular code editor.

  2. Loads your Terraform project directory in a new VSCode window.

  3. Lets you continue editing, linting, formatting, and committing your code using all of VSCode’s extensions and tools.

  4. All changes you commit are saved directly in your project folder after you save your changes to modules in VS Code. You can then return to this visual editor to see updates reflected in the StackGen Module Editor Web UI.

    note

    You will need to install the StackGen Extension for VS Code via the VS Code Marketplace.

Coming Soon​

We will start supporting the following IDEs over the next release.

  • Cursor
  • NVIM
  • Windsurf