<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>VS Code on Andrew Jones</title><link>https://andrew-jones.com/categories/vs-code/</link><description>Recent content in VS Code on Andrew Jones</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy; 2008 - 2026 Andrew Jones</copyright><lastBuildDate>Mon, 04 May 2026 07:30:50 +0000</lastBuildDate><atom:link href="https://andrew-jones.com/categories/vs-code/index.xml" rel="self" type="application/rss+xml"/><item><title>Per-project VS Code coloured windows</title><link>https://andrew-jones.com/blog/per-project-vs-code-coloured-windows/</link><pubDate>Mon, 04 May 2026 07:30:50 +0000</pubDate><guid>https://andrew-jones.com/blog/per-project-vs-code-coloured-windows/</guid><description>&lt;p&gt;Following on from my trick to &lt;a href="https://andrew-jones.com/blog/per-project-terminal-colours/" target="_blank" rel="noreferrer"&gt;change my terminal colour based on the project (git repo)&lt;/a&gt; I&amp;rsquo;m in, &lt;a href="https://bsky.app/profile/ssp.sh/post/3mk5uddkaxs2w" target="_blank" rel="noreferrer"&gt;Simon Späti shared&lt;/a&gt; that he does the same for his editor, Neovim.&lt;/p&gt;
&lt;p&gt;Which got me thinking, could I do the same for my editor, VS Code?&lt;/p&gt;
&lt;p&gt;Turns out I could by writing a small VS Code extension, with AI assistance.&lt;/p&gt;
&lt;figure style=""&gt;
&lt;img src="https://andrew-jones.com/images/blog/2026-05-04-per-project-vs-code-coloured-windows/CleanShot-2026-04-24-at-15.16.29.gif" alt="A gif showing the user switching to various directories in the terminal, and the terminal window changes colour. The user then opens VS Code and the editor is the same colour as the terminal." /&gt;
&lt;/figure&gt;
&lt;div class="clear"&gt;&lt;/div&gt;
&lt;p&gt;This only changes the colour of the title bar, rather than the entire background like my terminal implementation, so it&amp;rsquo;s more subtle, but still provides a good context signal.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m pleasantly surprised how simple the code is and how little boilerplate is needed to create a VS Code extension.&lt;/p&gt;
&lt;p&gt;So, now both my terminal and my editor have the same colour, giving a visual clue when I&amp;rsquo;m working across different projects.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m not planning to publish the extension to the VS Code marketplace as it feels a bit niche, but &lt;a href="https://github.com/andrewrjones/vscode-per-project-colour" target="_blank" rel="noreferrer"&gt;the code is on Github&lt;/a&gt; and it&amp;rsquo;s easy to build locally if you want to install it yourself.&lt;/p&gt;</description></item></channel></rss>