VS Code Workflow
Visual Studio Code (VS Code) is used within The Sunil Abraham Project (TSAP) primarily for larger or more structured maintenance work. It complements, rather than replaces, browser-based GitHub editing. This page documents the practical TSAP workflow for VS Code rather than explaining VS Code generally.
There are already many tutorials explaining how to use Visual Studio Code (VS Code). This page is not intended to duplicate those guides. Instead, this document explains how VS Code is used specifically within The Sunil Abraham Project (TSAP), including maintaining large numbers of Markdown pages, editing Jekyll front matter safely, reviewing Git changes before publication, and carrying out repository-wide maintenance work.
TSAP is not a software application in the conventional sense. It is closer to a long-term digital archive and publishing infrastructure. Because of this, the workflow emphasises readability, consistency, preservation, and cautious editing practices rather than rapid software deployment. Many edits may still be easier directly through the GitHub browser interface, especially for quick typo fixes, single-file edits, urgent corrections, mobile edits, and small metadata updates.
VS Code becomes especially useful when the scale of work increases, particularly when working across many related pages or performing repository-wide maintenance.
Typical TSAP Workflow
A normal TSAP editing session in VS Code often looks like this:
Open repository
→ Search across multiple pages
→ Edit several related files
→ Save all files
→ Review diffs carefully
→ Commit related edits together
→ Push changes to GitHub
This is especially useful when:
- standardising metadata
- repairing internal links
- improving accessibility
- updating templates
- auditing publication pages
- fixing repeated formatting issues
Unlike browser editing, VS Code makes it possible to inspect repository-wide patterns before publishing changes.
Opening the Repository
The TSAP repository is cloned locally using Git:
git clone full repository URL
Open the repository in VS Code:
cd sunilabraham
code .
The . means “open the current folder”.
Repository Structure
Some folders frequently used in TSAP include:
amaa/
articles/
clusters/
events/
media/
projects/
publications/
resources/
sunil/
tsap/
For a broader overview, see Site Structure. Understanding these folders gradually becomes more useful than memorising VS Code features themselves.
Useful Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Save current file | Ctrl + S |
| Save all files | Ctrl + K then S |
| Open Source Control | Ctrl + Shift + G |
| Repository-wide search | Ctrl + Shift + F |
| Open terminal | Ctrl + ` |
| Open Extensions panel | Ctrl + Shift + X |
| Open Command Palette | Ctrl + Shift + P |
| Quick file search | Ctrl + P |
| Find within current file | Ctrl + F |
| Replace within current file | Ctrl + H |
| Multi-file replace | Ctrl + Shift + H |
| Toggle sidebar | Ctrl + B |
Repository-Wide Search
One of the biggest advantages of VS Code for TSAP is repository-wide search.
Shortcut:
Ctrl + Shift + F
Useful for:
- locating internal links
- finding outdated metadata
- auditing repeated phrases
- checking CSS class usage
- identifying inconsistent formatting
- locating missing fields
- reviewing YAML structures
As TSAP grows, this becomes increasingly important.
Reviewing Changes Safely
Before committing changes:
- Open the Source Control panel
- Click changed files individually
- Review the visual diff
- Confirm no accidental edits exist
VS Code highlights additions in green, deletions in red, and modified lines visually.
This review step becomes especially important during batch edits, metadata cleanup, accessibility fixes, CSS modifications, and template changes.
Git Workflow
On TSAP, running
git pull before starting a local VS Code editing session is mandatory. The project uses multiple editing workflows, including browser editing, mobile app editing, Codespaces, Codex-assisted editing, and local VS Code editing. Running git pull helps prevent conflicts, accidental overwrites, and repository divergence.
One important difference between browser editing and VS Code editing is that VS Code exposes the underlying Git workflow directly.
The workflow usually has three stages:
Edit files
→ Commit locally
→ Push to GitHub
This can initially feel intimidating, but it provides important advantages:
- changes can be reviewed before publication
- mistakes are easier to detect
- edits remain reversible
- maintenance history becomes transparent
- large-scale changes become safer
For TSAP, Git history also functions as a kind of editorial and preservation log.
Common Git Commands
Pull latest repository changes:
git pull
Stage changes:
git add .
Create commit:
git commit -m "Commit message"
Push changes to GitHub:
git push
Commit Messages
Commit messages should briefly describe the purpose of the changes.
Examples:
[vscode] Add internal links
[a11y] Improve colour contrast
[cleanup] Cleanup
Useful tags may include [vscode], [a11y], [cleanup], [metadata], [css], [portal], and [infra].
Browser Editing vs VS Code
TSAP currently uses a hybrid workflow. Neither method replaces the other.
Browser Editing
Browser-based GitHub editing remains extremely useful for:
- correcting typos
- fixing one page quickly
- updating a single date or link
- making emergency edits
- editing while travelling
- quick publishing tasks
For lightweight work, browser editing is often faster.
VS Code
VS Code becomes valuable when work expands beyond isolated edits.
Examples include:
- editing many related pages together
- repository-wide search
- accessibility audits
- metadata standardisation
- reviewing diffs carefully before publishing
- editing layouts, includes, or CSS
- restructuring sections across multiple pages
Over time, both workflows naturally complement each other.
Recommended Extensions
Essential
- YAML by Red Hat
- markdownlint
- Jekyll Syntax Support
Useful
- GitLens
- Error Lens
- Todo Tree
Extensions should support readability and maintainability rather than unnecessary visual complexity.
Accessibility Considerations
When editing in VS Code:
- prioritise readable formatting
- use semantic HTML where appropriate
- maintain high colour contrast
- avoid unnecessary visual clutter
- preserve meaningful alt text
- check heading hierarchy carefully
- favour clean Markdown over excessive HTML
Accessibility remains a core TSAP priority.
Good Editing Practices
- Save files frequently
- Review diffs before committing
- Group related edits into meaningful commits
- Avoid massive unrelated commits
- Keep Markdown readable in raw form
- Preserve consistent formatting
- Use relative internal links where possible
- Prefer incremental improvements over unnecessary rewrites
Notes
- VS Code does not replace browser editing; both remain useful.
- Git history provides long-term transparency and reversibility.
- Repository-wide search becomes increasingly important as TSAP grows.
- Local editing reduces the fragility of browser-only workflows for large archival projects.
External Links
📄 This page was created on 26 May 2026. You can view its history on GitHub, preview the fileTip: Press Alt+Shift+G, or inspect the .