Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>forte-langNew to Visual Studio Code? Get it now.
forte-lang

forte-lang

marink2

|
20 installs
| (0) | Free
Language support for Forte input.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

forte-lang

This extension offers syntax highlighting, code snippets, option auto-completion and more for .dat input files used by the Forte [1] plugin of the Psi4 [2] quantum chemistry package.

Features

  • Snippets: A selection of snippets are included and can be accessed by typing _.

  • Language Support: Syntax highlighting, option auto-completion and hover-over description display (both currently available only for Forte), and document reformatting.

  • forte-lang Settings: Configures custom values for forte-lang parameters. To access these settings, right-click in the editor or open the command palette (Shift + Cmd/Ctrl + P) and select forte-lang: settings. The currently customizable parameters include:

    • Specifying the path to the Forte options.yaml file.

    • Setting the number of spaces between an option and its value in set { ... } and set forte { ... } blocks.

    • Defining the indentation size for options in set { ... } and set forte { ... } blocks.

  • Molecule Viewer: This feature allows users to highlight any molecule in Cartesian format and plot it (Cmd/Ctrl + M) in a webview. Right-clicking inside the webview panel opens a helpful menu with a list of options. Measurements can be made for bond lengths, bond angles, and atomic positions. Double-clicking on the units label (lower-left corner) changes the internal plotting logic (i.e., bond cutoff, atom radii, bond radii, etc.) to better visualize molecules provided in different units (Bohr or Angstrom). Note: This does not change the units of the molecule itself.

Molecule View Menu
  • Orbital Plotter: This feature allows users to plot orbitals (Cmd/Ctrl + O) from .cube files by selecting the directory containing the files (individual file selection is currently not supported). Orbitals are plotted as voxels (isosurface plotting is coming soon). The orbital plotting interface consists of two independent columns; selecting an orbital toggles it between the two columns.

  • Psi4 Run Button: This feature executes a bash script (from the user’s $HOME/Bin/ folder) in the current .dat file's working directory. To set up this feature, include a bash script named fl_psi4_run_bash.sh in your $HOME/Bin/ folder with the commands you want to use to execute Psi4 when the button is pressed.

    • Example fl_psi4_run_bash.sh file:
    #!/bin/sh
    source activate my_conda_env
    psi4
    

Version History

0.0.4

  • New Feature: Settings for forte-lang (RMB or Shift + Cmd/Ctrl + P > forte-lang: settings)

  • Updated: Orbital plot ordering now uses numeric collation to account for numbers in .cube file names

  • Fixed: Orbital plotter now correctly handles .cube files with trailing empty lines (previously causing the total density to be plotted)

0.0.3

  • New Feature: Molecule viewer (Cmd/Ctrl + M)

  • New Feature: Orbital plotter (Cmd/Ctrl + O)

  • New Feature: Navigation menu button that executes the bash scrip $HOME/Bin/fl_psi4_run_bash.sh

  • Updated: Forte options now only auto-complete within the set forte { ... } block

  • Updated: Forte option suggestions now appear only when the option line is empty

  • Updated: Hover-over Forte option suggestions now trigger only within the set forte { ... } block

  • Updated: Reduced spacing between options and values when auto-reformatting the document

  • Fixed: Comments no longer get auto-formatted

  • Fixed: Highlighting for missing irreps

0.0.2

  • Added auto-completion and hover-over for Forte options
  • Added reformatting for set { ... } and set forte { ... } option blocks
  • Improvements to snippets and highlighting

0.0.1

Initial release of forte-lang

References

[1] F. A. Evangelista, C. Li, P. Verma, K. P. Hannon, J. B. Schriber, T. Zhang, C. Cai, S. Wang, N. He, N. H. Stair, et al., arXiv preprint arXiv:2405.10197 (2024) [docs]

[2] D. G. Smith, L. A. Burns, A. C. Simmonett, R. M. Parrish, M. C. Schieber, R. Galvelis, P. Kraus, H. Kruse, R. Di Remigio, A. Alenaizan, A. M. James, S. Lehtola, J. P. Misiewicz, M. Scheurer, R. A. Shaw, J. B. Schriber, Y. Xie, Z. L. Glick, D. A. Sirianni, J. S. O’Brien, J. M. Waldrop, A. Kumar, E. G. Hohenstein, B. P. Pritchard, B. R. Brooks, H. F. Schaefer, A. Y. Sokolov, K. Patkowski, A. E. Deprince, U. Bozkaya, R. A. King, F. A. Evangelista, J. M. Turney, T. D. Crawford, and C. D. Sherrill, J. Chem. Phys. 152, 184108 (2020) [docs]

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