CIF Syntax Highlighter and more

The CIF extension helps crystallographers and materials scientists work more efficiently with .cif
and .dic
files by providing syntax highlighting, hover tooltips, and intelligent auto-completion inside Visual Studio Code.
Contributing
Found a bug or have a feature request? Open an issue or submit a pull request on GitHub.
Features
- Syntax highlighting for CIF tags, data blocks, save frames, strings, and comments
- Designed for working with CIF dictionaries and data files
- Hover text for tags showing tag definition from loaded dictionaries
- Auto-complete CIF tags based on loaded dictionaries
File Extensions Supported
Preview
Here's what CIF syntax highlighting looks like in VS Code:

Here's what the CIF hover text looks like in VS Code:

Future Ideas
- 💡 Have an idea? Open a feature request here!
Configuration
A minimal set of CIF dictionary files are provided. These include
DDL1 dictionaries:
DDL2 dictionary:
DDLm dictionaries:
If you want to use your own, customised set of dictionaries, you can specify them in your settings.json
:
"cifTools.dictionaryPaths": [
"path/to/dictionary1.dic",
"path/to/dictionary2.dic"
]
Specifying your own dictionaries will override all default dictionaries.
See the COMCIFS github or PDBx/mmCIF Dictionary Resources for other available dictionaries.
License
MIT
Installation
🌐 Install from the Visual Studio Code Marketplace
The easiest way to install CIF Syntax Support is directly from the Visual Studio Code Marketplace.
Option 1: Using the Extensions View
- Open Visual Studio Code.
- Go to the Extensions view:
- Click the Extensions icon in the Activity Bar on the side.
- Or press
Ctrl+Shift+X
(Windows/Linux) or Cmd+Shift+X
(macOS).
- In the search bar, type:
CIF Syntax Support
- Look for the extension by MatthewRowles and click Install.
Option 2: Install via Command Palette
- Open the Command Palette (
Ctrl+Shift+P
or Cmd+Shift+P
).
- Type and select:
Extensions: Install Extensions
- Search for
CIF Syntax Support
and click Install.
Or visit the Visual Studio Marketplace page to install it directly.
🛠️ Manual Installation from VSIX File
If you have a .vsix
file (e.g., provided via email, GitHub release, or another source), you can manually install the extension in Visual Studio Code.
Download the .vsix
file from Github
- Visit the Releases page.
- Download the latest
.vsix
file (it will look like cifvsc-x.y.z.vsix
).
Then:
Option 1: Using the Extensions View
- Open Visual Studio Code.
- Open the Extensions view:
- Click the squares icon in the left sidebar
or
- Press
Ctrl+Shift+X
(Windows/Linux) or Cmd+Shift+X
(macOS).
- Click the More Actions (⋯) menu at the top-right of the Extensions panel.
- Select Install from VSIX...
- Browse to and select your
.vsix
file.
- The extension will install, and you may be prompted to Reload the window.
Option 2: Using the Command Palette
- Press
Ctrl+Shift+P
(Windows/Linux) or Cmd+Shift+P
(macOS) to open the Command Palette.
- Type and select:
Extensions: Install from VSIX...
- Choose the
.vsix
file from your system.
- Wait for the installation to finish and reload if prompted.