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.
Table of Contents
Features
- 📚 Interactive Learning: Clone and navigate through structured, step-by-step tutorials
- 📝 Rich Content: View beautifully rendered Markdown content for each tutorial step
- 🔄 Git Integration: Seamlessly work with Git-based tutorial repositories
- 💾 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
- ⚡ Smart Navigation: Easy step-by-step progression with intuitive controls
- 🎨 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 when the tutorial is detected
2. Open an Existing Local Tutorial
Option A: Automatic Detection
- Open a folder containing a Gitorial project in VS Code (
File > Open Folder...
)
- The Gitorial extension will activate and detect the tutorial
- Click "Load Tutorial" when prompted to open the tutorial 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
3. Using the Gitorial Panel
- Navigation: Use "Next" and "Previous" buttons to move through tutorial steps
- Content: Read step instructions and explanations in the main panel
- Files: Relevant files for each step automatically open in the editor
- Solutions: Click "Show Solution" to view differences and compare your progress
- Progress: Your current position is automatically saved and restored
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 Gitorial 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
npm install
# Compile the extension
npm run compile
# Open in VS Code and press F5 to run in Extension Development Host
code .
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 current workspace or selected directory |
Troubleshooting
Common Issues
Tutorial not detected after opening folder
- Ensure the folder contains a valid Gitorial configuration
- Try running
Gitorial: Open Tutorial
manually
- Check that the folder is a Git repository
Files not opening automatically
- Verify that the tutorial repository has the expected file structure
- Check VS Code's file associations and permissions
- Restart VS Code if the issue persists
Git operations failing
- Ensure Git is installed and accessible from your PATH
- Verify you have proper permissions for the tutorial repository
- Check that the repository is not corrupted
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! 🚀