Writing in Visual Studio Code
Despite coding and writing in Visual Studio Code, the set-ups for these two activities are quite different. I’m using this post to track my writing-mode set-up and I expect to revisit it later.
Although the work is very different to programming, the writing workflow used by my team is not unlike a typical software team’s set-up. We use version control, pull requests, and many other familiar build and deployment steps.
My current setup includes a few extensions.
- Markdown All in One by Yu Zhang
- Auto Markdown TOC by Hunter Tran
- Word Count by Microsoft
- Markdown Table Prettifier by Krisztian Daroczi
- VSCode Speech by Matt Bierner
And a little preferences fix in my user-level settings.json
as I like to edit with a larger font size:
{ "editor.fontSize": 18, "editor.fontFamily": "Consolas, 'Courier New', monospace" }
Markdown all in one
The all-in-one markdown extension provides editor support for .md
files and a preview tool that you can use side-by-side to get a view of your work as you write.
You can also specify a stylesheet to be used to render the preview. This is best done as a workspace setting, so you can have different styles for different stuff. The path is relative to the folder, when you open the folder as a project. Otherwise, you’ll need to use a full path. This merges into the preview settings, so you may need to force some overrides on your body style to give the stylesheet full control.
Auto markdown TOC
The auto markdown TOC extension inserts and manages a table of contents in your file. After right-clicking and selecting “Auto markdown TOC: Insert/Update” a list of links to headings is added to the file. It gets updated each time you save.
Word count
The word count extension simply adds the number of words to the editor status bar. Here’s a zoomed-in version so you can it in the bottom left.
Markdown Table Prettifier
Select a table and “format selection” to fix up your tables and make them readable.
# Before | Left | Right | |--|--| |A|B| |C|D| #After | Left | Right | |------|-------| | A | B | | C | D |
VSCode Speech
VSCode Speech let’s you select a block of text and right-click to “speak selection”. It then reads it out. This is a super-useful tool for the editing process, when you want to hear the text rather than reading it (your brain makes a lot of automatic corrections during reading, so ingesting it through another sense can help detect errors).
Wish list!
Although there are some partial community-driven integrations with Grammarly, I’d love an official Grammarly extension that allows me to use my pro account (the community one uses the free-tier API). I’d love it to work with markdown files, too!
Written by Steve Fenton on