Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>spec logNew to Visual Studio Code? Get it now.
spec log

spec log

fujidana

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

spec Log File Support for Visual Studio Code

The extension is designed to assist users in browsing spec log files with Visual Studio Code. The term log files here indicates files created by the spec software when it is launched with -l option (e.g., fourc -l 20210414.tlog).

spec does not specify a filename extension for log files. While this extension by default treats .tlog as the file extension for 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.

screenshot

Features

  • Syntax highlighting: Colorize Lines of prompts, numbers, etc.
  • Code navigation : Mark prompts such as 1.FOURC> and scan header lines such as Scan 6 Sat Apr 24 ... for navigation and listed in the breadcrumbs.
    • Show all symbol definitions within a document
  • Code folding : Make lines between two prompts and continous lines of numbers or time foldable.
  • Display Scan Data in Graph : Show a link above a scan header line to open a preview of the scan data. "spec data" extension (fujidana.spec-data) is required to use this feature.
  • Document links : Make a file path in a scan header a clickable link. Relative paths are resolved from the workspace folder, not the log file.

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.

Tips

The extension sets level-2 folding ranges on lines between spec prompts. "Fold Level 2" and "Unfold All" system-wide commands are useful to control the visibility of the output for the prompts. These commands have default keyboard shortcuts, Ctrl+K Ctrl+2 (Cmd+K Cmd+2 for macOS) and Ctrl+K Ctrl+J (Cmd+K Cmd+J for macOS), respectively.

Known Issues

See GitHub Issues.

Release Notes

See CHANGELOG.md.

Contributing

The extension is open to contributions. Create an issue in GitHub Issues for a bug report or a feature request. If you want to contribute code, please read CONTRIBUTING.md.

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