Serhioromano / vscode-st

Extension for VS Code to support Structured Text language.
https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-st#overview
MIT License
141 stars 28 forks source link
codesys iec61131-3 plc structured-text twincat3 vscode-extension vscode-language vscode-snippets

Structured Text (IEC 61131-3)

Most complete Structured Text language support. Features includes:

Syntax Highlights

Includes syntax highlight based on IEC 61131-3 draft, including namespaces, SFC elements (STEP, ACTION, TRANSITION), constant variables (2#000_1010, 16#1E, INT#23) and more.

Structured Text syntax highlights example

Also highlight in Markdown files

Example

Snippets

Fast growing snippets library. All cycles, conditions and declarations.

Formatter (work in progress)

Utilize VS Code Formatter API. Use general formatting command short keys. It capitalize all known keywords like TRUE, FALSE, IF, BOOL, ... It also add spaces.

Note

Roadmap

Release Notes

1.12.25

1.11.14

1.11.2

1.11.1

1.10

1.9

1.8

1.7

Thanks to @nikvoronin

1.6

1.5.0

I've learned few things about syntax highlights. Big refactoring. I added some missing keywords, changed some coloring scopes and improved coloring in general.

1.3.0

1.2.0

All 3 make the same. Capitalize constants like TRUE, FALSE, EXIT and others. Right now only few. This is only proof of concept. Later we will add more beautifications.

1.1.0

1.0.0