vscode-epics, EYE (Enlight Your Epics)
This VS Code extension provides syntax highlighting for EPICS database, template, substitutions and startup files, and streamdevice prototype files.
Features
- [x] Syntax highlighting for:
- [x] database and template files (.db, .dbd and .template)
- [x] substitutions files (.substitutions, .sub, and .subs)
- [x] startup files (.cmd and .iocsh)
- [x] streamdevice prototype files (.proto)
- [x] SNL files (.st extensions are considered as .c extension and some keywords are highlighted)
- [ ] Snippets for:
- [x] database and template files (.db and .template)
- [x] substitutions files (.substitutions, .sub, and .subs)
- [x] startup files (.cmd and .iocsh)
- [x] C source code
- [ ] streamdevice prototype files (.proto)
- [x] SNL files (over charge of your .c extension)
- [x] we-test (scenario and suite)
Tips: to see all the available snippets per file type, write "epics." and a list will show up (file has to have a known extension). |
get all the fields of the EPICS database
- ".db": to select .dbd and .dbd.pod files
- commun:
$ cat <path_to_epics-base>/src/ioc/db/*.db* | grep 'field(' | tr "(," " " | awk '{print $2}' | tr "\n" "|" | sed 's/.$//'
$ cat <path_to_epics-base>/src/std/rec/*.db* | grep 'field(' | tr "(," " " | awk '{print $2}' | tr "\n" "|" | sed 's/.$//'
Requirements
VS Code 1.5 or newer version.
Extension Settings
None yet!
Known Issues
Every field types are not recognized yet, only the more commons.
Credits
- Snippets are mainly coming from language-epics Atom plugin, agaget and vnadot.
- get all the fields of the EPICS database trick is coming from atzvetkov
- should add contributor names here (todo)
to do
| |