VS Code Extension
We provide a VS Code extension to boost your productivity when creating Slidev presentations with this theme.
Features
- 🎯 Activity Bar Panel - Quick access to layouts, components, templates, themes, and references
- ✨ Code Snippets - Type
ss-orscholarly-to trigger snippets for layouts and components - 📝 One-Click Insert - Click any item in the panel to insert code at cursor position
- 🚀 New Presentation - Create a new presentation with pre-configured template
- 🎨 Theme Presets - Apply
themeConfig.colorTheme/themeConfig.fontThemefrom the Themes view - 📚 BibTeX References - Completion, hover, and a References view for your
.bibfile
Installation
From VSIX File
- Download the
.vsixfile from the release page - In VS Code, press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type "Extensions: Install from VSIX" and select the downloaded file
- Reload VS Code
Usage
Using Code Snippets
Type the prefix in any Markdown file to trigger auto-completion:
ss-cover # Insert cover layout
ss-theorem # Insert theorem component
ss-block # Insert block component
scholarly-cite # Insert citationPress Tab to move between placeholders in the inserted snippet.
Using Activity Bar
- Click the Slidev Scholarly icon in the Activity Bar (left sidebar)
- Browse through five sections:
- Layouts - Slide layouts organized by category:
- Structure - cover, default, intro, section, center, auto-center, end
- Content - two-cols, image-left/right, bullets, figure, split-image
- Emphasis - quote, fact, statement, focus
- Academic - compare, methodology, results, timeline, agenda, acknowledgments, references
- Components - Built-in Vue components
- Templates - Pre-made presentation templates
- Themes - Apply theme presets (updates frontmatter)
- References - Browse BibTeX entries and insert cite keys
- Layouts - Slide layouts organized by category:
- Click an item (or the
+button where available) to insert/apply
Creating New Presentation
- Open Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) - Type "Slidev Scholarly: New Presentation"
- Choose a location and filename
- A new file will be created with the basic template
Available Snippets
Layout Snippets
Layouts are organized into four categories. You can use category-specific prefixes (ss-structure-*, ss-content-*, ss-emphasis-*, ss-academic-*) or the shorter ss-* prefix.
Structure Layouts
| Prefix | Description |
|---|---|
ss-cover | Cover/title slide |
ss-default | Default content slide |
ss-intro | Section introduction |
ss-section | Section divider (supports sectionMode: dark/light) |
ss-center | Centered content |
ss-auto-center | Auto-adjusting centered content |
ss-end | Thank you/closing slide |
Content Layouts
| Prefix | Description |
|---|---|
ss-two-cols | Two-column layout |
ss-image-left | Image on left, text on right |
ss-image-right | Image on right, text on left |
ss-bullets | Enhanced bullet list |
ss-figure | Academic figure with caption |
ss-split-image | Side-by-side image comparison |
Emphasis Layouts
| Prefix | Description |
|---|---|
ss-quote | Quote with author attribution |
ss-fact | Single fact/statistic |
ss-statement | Important statement |
ss-focus | Focused statement with icon |
Academic Layouts
| Prefix | Description |
|---|---|
ss-compare | Side-by-side comparison |
ss-methodology | Research methodology |
ss-results | Results dashboard |
ss-timeline | Research timeline |
ss-agenda | Agenda/overview |
ss-acknowledgments | Acknowledgments slide |
ss-references | Bibliography slide |
Component Snippets
| Prefix | Description |
|---|---|
ss-theorem | Theorem/lemma/definition |
ss-block | Beamer-style colored block |
ss-steps | Workflow/process steps |
ss-steps-md | Workflow/process steps (Markdown syntax sugar) |
ss-keywords | Keyword tags |
ss-keywords-md | Keyword tags (Markdown syntax sugar) |
ss-columns | Multi-column layout |
ss-columns-md | Multi-column layout (Markdown syntax sugar) |
ss-highlight | Text highlighting |
ss-highlight-md | Text highlighting (Markdown syntax sugar) |
ss-cite | BibTeX citation @citekey |
ss-cite-comp | Cite component (non-BibTeX) |
ss-cite-md | Cite component (Markdown syntax sugar) |
ss-theme-preview | ThemePreview component |
scholarly-bibliography | Bibliography placeholder |
Theme Preset Snippets
| Prefix | Description |
|---|---|
ss-theme-oxford | Oxford Burgundy + Traditional fonts |
ss-theme-cambridge | Cambridge Green + Elegant fonts |
ss-theme-yale | Yale Blue + Classic fonts |
ss-theme-princeton | Princeton Orange + Modern fonts |
ss-theme-modern | Monochrome + Sans-default fonts |
Utility Snippets
| Prefix | Description |
|---|---|
ss-frontmatter | Full frontmatter configuration |
ss-slide / --- | Slide divider |
Tips
Quick Layout Selection
When you need a specific layout, just type ss- and browse through the autocomplete suggestions. Each snippet includes helpful placeholders for common options.
Combining with Markdown Syntax Sugar
The extension works great with the Markdown Syntax Sugar feature. You can use either:
<!-- Using Vue component (from snippet) -->
<Theorem type="theorem" title="Main Result">
Content here
</Theorem>
<!-- Using Markdown directive -->
:::theorem{type="theorem" title="Main Result"}
Content here
:::Customizing Snippets
If you want to modify the snippets, you can:
- Open VS Code Settings
- Search for "Configure User Snippets"
- Select "markdown.json"
- Add your custom snippets
Troubleshooting
Snippets Not Showing
- Make sure the extension is installed and enabled
- Check that you're editing a
.mdfile - Try pressing
Ctrl+Spaceto manually trigger suggestions
Activity Bar Icon Missing
- Right-click on the Activity Bar
- Make sure "Slidev Scholarly" is checked
Feedback
Found a bug or have a feature request? Please open an issue on GitHub.