Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>TwinCAT Structured TextNew to Visual Studio Code? Get it now.
TwinCAT Structured Text

TwinCAT Structured Text

Apollo3zehn

|
2 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-twincat-st

TwinCAT Structured Text support for Visual Studio Code


Overview

This extension brings TwinCAT Structured Text (ST) language support to VS Code. The long-term goal is to enable full editing of ST code directly in VS Code. Currently, the extension provides syntax highlighting, diagnostics and navigation features. Editing is not yet supported, i.e. diagnostics will not be updated on the fly.

  • Browse and navigate TwinCAT ST codebases with semantic awareness.
  • No direct editing of TwinCAT XML files (.TcPOU, .TcDUT, .TcGVL, etc).
  • Conversion required: You must convert your TwinCAT XML sources to .st files before using the language features.

Getting Started

  1. Install the extension from the VS Code Marketplace.

  2. Open your TwinCAT solution in VS Code.
    The extension will detect your TwinCAT solution file (e.g., .sln).

  3. Convert TwinCAT XML files:
    On first use, you will be prompted to convert all TwinCAT XML source files to .st files.

  4. The language server will now launch and provide navigation for your .st files.


Development

  1. Install dependencies:

    npm install
    
  2. Restart VS Code after install (required for ANTLR modifications).

  3. To edit the TextMate grammar, modify grammars/st.tmLanguage.yaml and convert it:

    pnpx js-yaml grammars/st.tmLanguage.yaml > grammars/st.tmLanguage.json
    

Feedback and contributions are welcome!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft