SciX reference search
Select a citation in any file, right click and choose Search in SciX. The extension finds
the paper in SciX (NASA Science Explorer, the successor of NASA ADS).
It understands citations as they appear in code comments, papers and notes, for example
Rab, C. et al. (2020), Rab+ 2021, Müller, A. and Franz, B. 2010,
Kelly & Lacy 1995 ApJ 454, L161, a DOI, an arXiv ID or a bibcode.
Features
- Shows the best papers with their scores and reasons; ★ marks the proposal.
- For the chosen paper:
- insert its link after the citation;
- open it on SciX or by its DOI;
- copy its bibcode, DOI or BibTeX entry.
- Handles several citations in one selection, and citations across comment lines.
- Ranks astrophysics papers first; you can change the order in the settings.
- SciX: Show parsed citation shows what the parser makes of a selection.
Setup
The search needs a free SciX API token:
- Log in at SciX and generate a token under
Settings → API Token.
- Run SciX: Set API token. VS Code keeps the token in its secret storage.
Without a stored token, the extension uses the environment variable SCIX_API_TOKEN.
SciX: Remove API token deletes the stored token.
Settings
| Setting |
Default |
Meaning |
scixref.maxResults |
5 |
Papers shown per citation. |
scixref.insertFormat |
"{url}" |
Text inserted after the citation, with one blank before and after it. Placeholders: {url}, {bibcode}, {doi}, {doiUrl}. Can differ per language, e.g. "[markdown]": {"scixref.insertFormat": "[{bibcode}](https://github.com/chrab/vscode-scixref/blob/HEAD/{url})"}. |
scixref.collections |
["astrophysics", "astronomy", "physics"] |
Preferred SciX collections, most preferred first. [] switches this off. |
scixref.referenceService |
never |
Also ask the SciX reference service, which can be slow: never; auto (fallback for a full reference when no paper matches its volume and page); always. |
scixref.journals |
{} |
More journals: name as written (lower case) → SciX bibstem. |
scixref.timeout |
30 |
Time limit of each SciX request in seconds; 0 means no limit. |
scixref.apiUrl |
https://api.scixplorer.org/v1 |
SciX API. |
The output channel SciX shows the queries, their times and the scores. It never shows the token.
See CHANGELOG.md for the changes, and CONTRIBUTING.md
for how the parser and the search work.