Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Sindarin for VSCodeNew to Visual Studio Code? Get it now.
Sindarin for VSCode

Sindarin for VSCode

Sindarin Corp

|
1 install
| (0) | Free
Extension for Sindarin, a program for crystal diffraction calculations
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

sindarin-lang

Version Installs Downloads

Sindarin for VS Code

Sindarin for Visual Studio Code is an extension that includes some features to make the Sindarin program easier to use with this powerful text editor.

Sindarin is a crystal diffraction calculation program that uses a dedicated input script for modeling theoretical diffraction patterns. The script is designed to be simple, flexible and enables a range of possibilities for the calcules.

This extension is still a beta version

Features of Sindarin for VS Code

The extension enables Sindarin code highlighting. Sindarin "language" is automatically enabled by the extension when the file with the ".sin" extension is opened in the editor or it can be enabled manually by selecting the "language mode selector" in the status bar.

Sindarin Code Highlighting

Sindarin Language in language mode selector

Some commands are enable in VS Code:

  1. Interpet: run sindarin to interpret for the current sindarin file (Shortcut: Ctrl+Shift+Down Arrow)
  2. Walk: run sindarin to interpret and run optimization routine for the current sindarin file (Shortcut: Ctrl+Shift+Right Arrow)
  3. Update: run sindarin to update program form online repositorie, need internet connection (Shortcut: Ctrl+Shift+U)
  4. Manual: open the manual of sindarin program/library (Shortcut: Ctrl+Shift+M)

These commands can be acessed by Command Pallete, short cut or dedicated icons in editor title. Sindarin commands in Command Pallete

Sindarin icons in editor title

The icons are automatically enabled with the Sindarin language signed text

Also, the Chart.js Preview extension is installed together with the sindarin extension. You can view in VS Code the diffractograms of the .chart.json5 file generated after the interpret or walk commands

View diffraction in VS Code wit Chart.js

Requirements

You need the Sindarin program installed on your computer. The extension locates it in the following order:

  1. sindarin.executablePath setting (recommended for custom locations) — the full path to the Sindarin executable (or to Sindarin.dll on macOS). A leading ~ is expanded to your home folder.
  2. System PATH — if Sindarin is available on your PATH it will be used.
  3. Default folder — used when neither of the above is set:
    • Windows: C:\Sindarin
    • Linux: ~/Sindarin
    • macOS: ~/Sindarin

To set a custom path, open VS Code Settings, search for Sindarin, and fill in Sindarin: Executable Path — or add to your settings.json:

{
  "sindarin.executablePath": "D:\\Tools\\Sindarin\\Sindarin.exe"
}

When Sindarin is not in the default folder, the in-editor Update command may not complete on Linux and macOS (it still works from the command line). On Windows it works normally.

macOS — .NET runtime

On macOS, Sindarin requires the .NET runtime to be installed. The extension automatically checks whether the correct version is available the first time you run a command. If it is not installed, a notification will appear with two options:

  • Install automatically — downloads and installs the runtime silently in the background using the official Microsoft install script (no administrator password required).
  • Download page — opens the .NET download page in your browser so you can install it manually.

Download Sindarin

Download the package for your platform (these links always point to the latest release):

  • Windows x64
  • Windows x86
  • Windows ARM64
  • Linux x64
  • macOS x64

Unzip the downloaded file into the default folder (or into the folder you configured in sindarin.executablePath). On Linux, the program was tested only on the Ubuntu distribution.

After the first install, the extension's Update command keeps Sindarin up to date automatically, so you normally only need to download manually once.

About Sindarin Library

Sindarin is a computer library for crystal diffraction calculations. It can be run by some command lines by the "Sindarin" executable. Sindarin for VSCode is an extension of this text editor that allows the same features without typing any command line, besides facilitating the editing of the sindarin file (.sin) and showing the diffractograms resulting from the calculation in the editor itself. The Sindarin file is a plain text file written with a simple and flexible syntax that is used as input to diffraction model information. The text is "interpreted" by the algorithm, and then objects representing the diffraction experiment are created in the memory and the theoretical diffractogram is calculated. The optimization algorithm nonlinear least squares (NLS) with Marquart or dumping stabilization is used to fit the parameters.

A dedicated code editor with various diffraction and syntax tools will be available soon.

Some Features

  • Rietveld refinement with full crystal strucutre calculation
  • Le Bail and --- refinements without atoms information, only lattice parameters
  • Calculation of profiles without any crystallographic information
    • with isotropic and anisotropic function for size and microstrain
  • Fundamental Parameters Approach (FPA), for an accurate instrumental profile calculation
  • Whole Pattern Powder Modeling (WPPM), for microstrucutre calculation
    • Crystals size distribuction
    • Dislocation
    • Stacking fault
  • Intensity corrections
    • Lorentz-Polarization
    • Absorption Capillary sample
    • Absorption Thin Film
    • Variable Slit
    • Preferred orientation
    • Custom absorption function correction
    • Arbitraty peak intensity correction
  • Peak position correction
    • Zero
    • Sample Displacement
      • Flat speciment (reflection geometry)
      • Capillary sepciment (tramission geometry)
    • From Capillary speciment absorption
    • Arbitrary peak shift
  • Diffractometers geometries
    • Bragg Bretano
    • Fixed incident angle
  • Anomalous Scattering
    • Internal values of each atoms
    • Refinable anomalous scattering factors
  • Background can be fitted with multiples function
    • Pre-determined functions
    • Custom background function
  • Multiple data file
  • Simultaneous refinement of multiple diffraction measurements

At the moment Sindarin calcule X-Ray Powder Diffraction Pattern

More information about Sindarin can be found in site: https://nimloth.app/sindarin/

Have a Good Work!

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