Skip to content

galacticusorg/galacticus-code

Repository files navigation

Galacticus Code

VSCode support for working on Galacticus.

Features

  • Embedded syntax highlighting inside .F90 source files:
    • XML directive blocks — !![ ... !!]
    • reStructuredText docstrings — !!{RST ... !!}
  • Open Documentation for functionClass — a command (also on the editor right-click menu for .F90 files) that deep-links to the online documentation for the class defined in the current file. It works both on a functionClass base class (_class.F90) and on a concrete implementation, opening the family page at the correct physics-<name> anchor. Run it from the Command Palette (Galacticus: Open Documentation for functionClass), the context menu, or the keybinding Ctrl+K Ctrl+G (Cmd+K Cmd+G on macOS) while a .F90 file is focused. If a file defines more than one class, you are prompted to choose.

Installation

Install it from the Marketplace in VSCode.

Depends on:

Both are installed automatically as dependencies.

Settings

  • galacticus.docsBaseUrl (default https://galacticus.readthedocs.io/en/latest/) — base URL used by the documentation command. Point it at a different build (e.g. a local or versioned docs build) if needed. The command constructs <base>/physics/<family>.html#physics-<name>.

Enjoy!

About

VSCode extension for working with Galacticus source code

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages