VS Code Development Guide for Life After Coding Blog
This guide covers all VS Code-specific workflows, tasks, and shortcuts for developing the Quarto blog with pixi integration.
🚀 Quick Start
1. Open the Project
Open the workspace file: life-after-coding-blog.code-workspace
Or open the folder directly in VS Code
2. Install Recommended Extensions
VS Code will prompt you to install recommended extensions. Key extensions:
Quarto (quarto.quarto) - Essential for .qmd files
Python (ms-python.python) - Python support
Black Formatter (ms-python.black-formatter) - Code formatting
Flake8 (ms-python.flake8) - Linting
MyPy (ms-python.mypy-type-checker) - Type checking
Even Better TOML (tamasfe.even-better-toml) - For pixi.toml
3. Setup Environment
Run the first-time setup task:
Ctrl+Shift+P → "Tasks: Run Task" → "Pixi: Install Dependencies"
🎯 Essential VS Code Tasks
Primary Workflow Tasks
Task Name
Keyboard Shortcut
Description
Quarto: Preview (pixi)
Ctrl+Shift+Q → Ctrl+Shift+P
Start live preview server
Quarto: Render (pixi)
Ctrl+Shift+Q → Ctrl+Shift+R
Build complete site
Quarto: Clean (pixi)
Ctrl+Shift+Q → Ctrl+Shift+C
Clean output files
Quarto: Check (pixi)
Ctrl+Shift+Q → Ctrl+Shift+K
Validate project
Environment Management
Task Name
Keyboard Shortcut
Description
Pixi: Install Dependencies
Ctrl+Shift+P → Ctrl+Shift+I
Install all dependencies
Pixi: Shell
Ctrl+Shift+P → Ctrl+Shift+S
Open pixi environment shell
Development Tools
Task Name
Keyboard Shortcut
Description
Dev: Format Code (pixi)
Ctrl+Shift+D → Ctrl+Shift+F
Format Python code with Black
Dev: Lint Code (pixi)
Ctrl+Shift+D → Ctrl+Shift+L
Lint code with Flake8
Dev: Type Check (pixi)
Ctrl+Shift+D → Ctrl+Shift+T
Type check with MyPy
Fallback Tasks (without Pixi)
Task Name
Description
Quarto: Preview (fallback)
Preview without pixi environment
Quarto: Render (fallback)
Render without pixi environment
🔧 Command Reference
Access Tasks
There are multiple ways to run tasks in VS Code:
Method 1: Command Palette
Ctrl+Shift+P → "Tasks: Run Task" → [Select Task]
Method 2: Keyboard Shortcuts
Use the custom shortcuts defined above for frequently used tasks.
Method 3: Terminal
You can also run pixi commands directly in the integrated terminal:
pixi run previewpixi run renderpixi run cleanpixi run check
Pixi-Specific Commands
Environment Commands
pixi install # Install dependenciespixi shell # Activate environmentpixi list # List installed packagespixi add <package># Add new packagepixi remove <package># Remove package
Blog Development Commands
pixi run preview # Start preview serverpixi run render # Render sitepixi run clean # Clean outputspixi run check # Check projectpixi run serve # Serve on custom port (4200)pixi run build # Build sitepixi run new-post # Create new blog post (interactive)
Development Tools Commands
# Use dev environment (-e dev flag)pixi run -e dev format # Format Python code with Blackpixi run -e dev lint # Lint code with Flake8pixi run -e dev typecheck # Type check with MyPy
📝 Blog Management Workflows
Creating a New Post
Method 1: Using the Script (Recommended)
# In VS Code terminalpixi run new-post
This interactive script will:
Prompt for title, description, author
Ask for categories
Create the post directory and file
Set up proper front matter
Method 2: Manual Creation
Create new folder: posts/my-post-title/
Create index.qmd file with front matter:
---title:"My Post Title"description:"Post description"author:"The Code Writer"date:"2025-08-10"categories:- category1- category2draft:true---
Development Workflow
Daily Development Loop
Start preview: Ctrl+Shift+Q → Ctrl+Shift+P
Edit content in .qmd files
Save files (auto-preview updates)
Format code before committing: Ctrl+Shift+D → Ctrl+Shift+F
Publishing Workflow
Check for issues: Ctrl+Shift+Q → Ctrl+Shift+K
Final render: Ctrl+Shift+Q → Ctrl+Shift+R
Commit and push (triggers automatic GitHub Pages deployment)