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:

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

One of the biggest advantages of VS Code for TSAP is repository-wide search.

Shortcut:

Ctrl + Shift + F

Useful for:

As TSAP grows, this becomes increasingly important.

Reviewing Changes Safely

Before committing changes:

  1. Open the Source Control panel
  2. Click changed files individually
  3. Review the visual diff
  4. 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

⚠️ Please note:
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:

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:

For lightweight work, browser editing is often faster.

VS Code

VS Code becomes valuable when work expands beyond isolated edits.

Examples include:

Over time, both workflows naturally complement each other.

Essential

Useful

Extensions should support readability and maintainability rather than unnecessary visual complexity.

Accessibility Considerations

When editing in VS Code:

Accessibility remains a core TSAP priority.

Good Editing Practices

Notes

📄 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 .