githubEdit

VSCode

VS Code for Writing (Markdown Workflow)

Intro and my editor landscape

Although Visual Studio Codearrow-up-right is primarily known as a code editor, it works extremely well for structured writing - especially Markdown-based documentation. Sadly, support for AsciiDoc (possible through the asciidoctor extension) is nowhere near as seamless and complete.

For me, it effectively replaced Atomarrow-up-right (now discontinued) which in turn replaced Sublime Textarrow-up-right (still in active development), mainly thanks to:

  • fast file navigation (Ctrl + P)

  • excellent Markdown preview

  • extensions ecosystem

  • integrated Git workflows

More recently, I’ve been keeping an eye on Zedarrow-up-right - built by the original Atom team - as a potential next step, especially for performance and collaboration features.

At the same time, I’ve never really been able to settle the classic vi vs emacsarrow-up-right question - despite spending quite a bit of time in Org modearrow-up-right. I’ve also briefly explored more modern takes like Neovimarrow-up-right and Helixarrow-up-right, which feel closer to what I’d want today.

For a while, I had high hopes for Writersidearrow-up-right, especially when I was writing alongside dev teams using JetBrains IDEs, but I didn't cry when it got sunset as a standalone app and folded back into a plugin.

Keyboard shortcuts for writing (focus: navigation, structure, flow)

When using VS Code as a writing tool, efficiency comes less from "coding features" and more from fast navigation, layout control, and text manipulation.

Below is a curated set of high-value shortcuts (Windows / Linux) for documentation workflows.

Reference

Opening & switching context

  • Quick open fileCtrl + P

  • Switch between open editorsCtrl + Tab

  • Reopen last closed fileCtrl + Shift + T

  • Open command paletteCtrl + Shift + P

Editor layout (critical for writing)

  • Split editor (side-by-side)Ctrl + \

  • Focus next editor groupCtrl + K Ctrl + →

  • Focus previous editor groupCtrl + K Ctrl + ←

  • Move file to another groupCtrl + K, then arrow key

  • Close current editorCtrl + W

Tip: Use split view for source vs preview or notes vs reference.

Markdown preview

  • Open preview (side-by-side)Ctrl + K V

  • Toggle previewCtrl + Shift + V

  • Go to lineCtrl + G

  • Go to symbol (headings in Markdown)Ctrl + Shift + O

  • Go back / forwardAlt + ← / →

  • Scroll without moving cursorCtrl + ↑ / ↓

Searching (single file vs project)

  • Find in fileCtrl + F

  • Replace in fileCtrl + H

  • Find in projectCtrl + Shift + F

  • Replace in projectCtrl + Shift + H

Multi-cursor & structured edits

  • Add cursor (mouse-free)Ctrl + Alt + ↑ / ↓

  • Select next occurrenceCtrl + D

  • Select all occurrencesCtrl + Shift + L

  • Column (block) selectionShift + Alt + drag

Extremely useful for editing lists, tables, repeated structures.

Line operations (fast restructuring)

  • Move line up/downAlt + ↑ / ↓

  • Copy line up/downShift + Alt + ↑ / ↓

  • Delete lineCtrl + Shift + K

  • Insert line below / aboveCtrl + Enter / Ctrl + Shift + Enter

Folding & structure

  • Fold regionCtrl + Shift + [

  • Unfold regionCtrl + Shift + ]

  • Fold allCtrl + K Ctrl + 0

  • Unfold allCtrl + K Ctrl + J

Great for collapsing sections in long documents.

Terminal & panels (context switching)

  • Toggle terminalCtrl + `

  • Focus editor from terminalCtrl + 1

  • Toggle sidebar (file tree)Ctrl + B

Formatting & cleanup

  • Format documentShift + Alt + F

  • Trim trailing whitespace (manual via command palette)

  • Toggle word wrapAlt + Z

How to use these effectively

1. Think in "panes", not files

  • Left: file tree

  • Center: editor(s)

  • Bottom: terminal / search

Move between them without touching the mouse.

2. Prefer search over browsing

  • Ctrl + P → files

  • Ctrl + Shift + O → headings

  • Ctrl + Shift + F → content

This replaces manual navigation almost entirely.

3. Combine with snippets

  • Use snippets for structure

  • Use shortcuts for movement and editing

4. Optimize for flow, not memorization

Start with:

  • Ctrl + P

  • Ctrl + \

  • Ctrl + Shift + F

  • Ctrl + D

  • Alt + ↑ / ↓

Then expand gradually.

Notes

  • VS Code rewards keyboard-first workflows

  • Command palette (Ctrl + Shift + P) → discover everything

  • Most "writing friction" comes from navigation, not typing

  • The goal is to reduce:

    • context switching

    • mouse usage

    • repetitive edits

Last updated