Gitorial

A VS Code extension that enables interactive, step-by-step, Gitorial-based tutorials directly in your editor. Learn coding concepts, frameworks, and best practices through guided, hands-on experiences.
Funding & Support
This project is proudly funded by Polkadot OpenGov. We're grateful for the community's support in making interactive learning more accessible for developers in the Polkadot ecosystem and beyond.
Table of Contents
Features
- 📚 Interactive Learning: Clone, navigate, edit, compile and test through structured, step-by-step tutorials
- 📝 Rich Content: View rendered Markdown content for each tutorial step
- 🔄 Git Integration: Seamlessly work with tutorial following the Gitorial specification
- 💾 Persistent State: Automatically remembers your progress across VS Code sessions
- 🎯 Focused Learning: Automatically opens relevant files for each step
- 🔍 Solution Viewing: Compare your work with step solutions using built-in diff views
- 🎨 Clean UI: Dedicated tutorial panel that doesn't interfere with your coding workflow
How to Use
For Tutorial Users
1. Clone a New Tutorial
- Open the command palette (
Ctrl+Shift+P
or Cmd+Shift+P
)
- Run the command
Gitorial: Clone New Tutorial
- Enter the Git URL of the tutorial repository
- Select a parent directory where the tutorial folder will be created
- The extension clones the repository into a new sub-folder named after the repository
- A new VS Code window automatically opens with the cloned tutorial folder
- The Gitorial panel loads automatically
2. Open an Existing Local Tutorial
Option A: Automatic Detection
- Open a folder containing a Gitorial project in VS Code (
File > Open Folder...
)
- Run the command
Gitorial: Open Tutorial (Workspace)
- The Gitorial extension will activate, detect the tutorial and open the panel
Option B: Manual Opening
- Use the command
Gitorial: Open Tutorial
- Choose "Use Current Workspace" (if the workspace is the tutorial root) or "Select Directory..." to browse to the tutorial folder
- If you select a directory, it will open in a new VS Code window and trigger tutorial detection
For Tutorial Authors
For information on creating Gitorial-compatible tutorials, please refer to the official Gitorial SDK documentation.
🏗️ Coming Soon: In an upcoming version, the extension will support creating new Gitorials directly from within VS Code.
Installation
From VS Code Marketplace
- Open VS Code
- Go to the Extensions view (
Ctrl+Shift+X
or Cmd+Shift+X
)
- Search for "Gitorial"
- Click Install
Manual Installation
- Download the latest
.vsix
file from the releases page
- In VS Code, run
Extensions: Install from VSIX...
from the command palette
- Select the downloaded
.vsix
file
Development
For comprehensive information on setting up the development environment, understanding the project architecture, and contributing to the extension, please see the Development Guide.
Quick Start
# Clone the repository
git clone https://github.com/andrzejSulkowski/gitorial-vs-code-plugin.git
cd gitorial-vs-code-plugin/project
# Install dependencies
pnpm install
# Start development mode (builds shared packages + watches for changes)
pnpm run dev
# Build everything for production
pnpm run build
# Package the extension
pnpm run package
# Open in VS Code and press F5 to run in Extension Development Host
code .
See DEVELOPMENT.md for the developer documentation.
Commands
Command |
ID |
Description |
Gitorial: Clone New Tutorial |
gitorial.cloneTutorial |
Clones a new tutorial repository into a selected parent folder and opens it |
Gitorial: Open Tutorial |
gitorial.openTutorial |
Opens an existing local tutorial from selected directory |
Gitorial: Open Tutorial (Workspace) |
gitorial.openTutorialWorkspace |
Opens an existing local tutorial from current workspace |
Troubleshooting
Getting Help
Contributing
We welcome contributions! Please see our Development Guide for details on:
- Setting up the development environment
- Understanding the codebase architecture
- Running tests
- Submitting pull requests
License
MIT © Andrzej Sulkowski
Enjoy learning with Gitorial! 🚀