Skip to content

SPEC Log File Extension for Visual Studio Code

License

Notifications You must be signed in to change notification settings

fujidana/vscode-spec-log

Repository files navigation

spec Log File Extension for Visual Studio Code

The extension enhances user experiences in browsing spec log files with Visual Studio Code. The term log files here indicates files created when spec software is launched with -l option (e.g., fourc -l 20210414.tlog).

spec does not specify the filename extension of log files. While this VS Code extension by default treats .tlog as the file extension of log files (language identifier: spec-log), users can change the association by themselves. Read Language Support in Visual Studio Code (official document of VS Code) for further details.

What's spec?

spec is internationally recognized as the leading software for instrument control and data acquisition in X-ray diffraction experiments. It is used at more than 200 synchrotrons, industrial laboratories, universities and research facilities around the globe.

cited from CSS - Certified Scientific Software homepage.

Note that the extension is not the official one developed by Certified Scientific Software. Use GitHub issues for bug reports and feature requests about the extension.

Features

  • Syntax highlighting
  • Code navigation
    • Show all symbol definitions within a document
  • Code folding

Lines starting with a spec prompt such as 1.FOURC> are picked out for code navigation and folding.

screenshot

Tips

With this extension, one can only show lines of spec prompts (i.e., what you typed) and hide the other lines. To do so, use "Fold Level 2" command or its equivalent Keyboard shortcut (Ctrl+K Ctrl+2 (Windows/Linux) or Command+K Command+2 (macOS), by default).

Requirements

None.

Extension Settings

None.

Known Issues

Nothing known.