This Visual Studio Code extension allows you to open FITS files in a browser using the Firefly library.
- Open FITS files directly from the VSCode Explorer.
- View FITS files in a web browser with Firefly.
- Right-click on a FITS file in the VSCode Explorer.
- Select "Open FITS File" from the context menu.
- The FITS file will open in your default web browser.
This uses scaffolding code 'yo', installed with:
npm install -g yo generator-code
And run to create the structure of the repos:
yo code
Updates are in src/extension.ts
and package.json
- Node.js (version 14 or higher recommended)
- npm (usually comes with Node.js)
- Visual Studio Code
-
Clone the repository:
git clone https://github.com/ejoliet/firefly-vscode-extension.git cd firefly-vscode-extension
-
Install dependencies:
npm install
-
Build the extension:
npm run compile
-
Open the extension in VSCode:
code .
-
Launch the extension:
- Press
F5
to open a new VSCode window with your extension loaded.
- Press
Build package with
vsce package
- Download the
.vsix
file from the provided link. - Open VSCode.
- Go to the Extensions view (
Ctrl+Shift+X
orCmd+Shift+X
on macOS). - Click the three-dot menu (
...
) at the top-right corner. - Select "Install from VSIX..." and choose the downloaded
.vsix
file.
This extension does not require any specific settings.
- Ensure the FITS file is accessible and not corrupted.
- Initial release of FITS Viewer Extension.