<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: team@axialis.com</title>
    <description>The latest articles on DEV Community by team@axialis.com (@axialisteam).</description>
    <link>https://dev.to/axialisteam</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4249831%2F62d1ffb9-0d53-4090-a094-251f36acc1cd.png</url>
      <title>DEV Community: team@axialis.com</title>
      <link>https://dev.to/axialisteam</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/axialisteam"/>
    <language>en</language>
    <item>
      <title>Edit Inline SVG Visually - and Keep Undo in VS Code</title>
      <dc:creator>team@axialis.com</dc:creator>
      <pubDate>Tue, 17 Nov 2026 14:48:44 +0000</pubDate>
      <link>https://dev.to/axialisteam/edit-inline-svg-visually-and-keep-undo-in-vs-code-5a7p</link>
      <guid>https://dev.to/axialisteam/edit-inline-svg-visually-and-keep-undo-in-vs-code-5a7p</guid>
      <description>&lt;p&gt;An inline SVG is part of your source code, but adjusting its shape is often easier on a canvas. The awkward part is bringing the result back: copying the right block, leaving the surrounding HTML alone, and knowing what happens when you press Undo.&lt;/p&gt;

&lt;p&gt;This walkthrough uses IconVectors to edit a static SVG from a local VS Code project. The example is deliberately small: a check-mark icon with a blue background that becomes orange. That makes the source change easy to inspect before trying more involved artwork.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: we build IconVectors at Axialis. The screenshots below come from our recorded Windows demonstration. IconVectors is a commercial desktop application with a 30-day trial.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with a small, inspectable example
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://iconvectors.io/tutorials/examples/vscode-inline-example.zip" rel="noopener noreferrer"&gt;Download the companion HTML example&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The ZIP contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;project-blue.html&lt;/code&gt;: the starting point.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;project-orange.html&lt;/code&gt;: the reference result.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;README.md&lt;/code&gt;: instructions for reproducing the workflow.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These companion files reproduce the icon geometry and colors from the recording; they are not the original recorded host file.&lt;/p&gt;

&lt;p&gt;Here is the SVG in the blue example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;svg&lt;/span&gt; &lt;span class="na"&gt;xmlns&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"http://www.w3.org/2000/svg"&lt;/span&gt;
     &lt;span class="na"&gt;viewBox&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"0 0 32 32"&lt;/span&gt;
     &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"96"&lt;/span&gt;
     &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"96"&lt;/span&gt;
     &lt;span class="na"&gt;role&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"img"&lt;/span&gt;
     &lt;span class="na"&gt;aria-label&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"Complete"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;rect&lt;/span&gt;
    &lt;span class="na"&gt;x&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"3"&lt;/span&gt;
    &lt;span class="na"&gt;y&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"3"&lt;/span&gt;
    &lt;span class="na"&gt;width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"26"&lt;/span&gt;
    &lt;span class="na"&gt;height&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"26"&lt;/span&gt;
    &lt;span class="na"&gt;rx&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"7"&lt;/span&gt;
    &lt;span class="na"&gt;fill&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"#168BEE"&lt;/span&gt;
  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;path&lt;/span&gt;
    &lt;span class="na"&gt;d&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"M9 16l5 5 9-10"&lt;/span&gt;
    &lt;span class="na"&gt;fill&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt;
    &lt;span class="na"&gt;stroke&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"#FFFFFF"&lt;/span&gt;
    &lt;span class="na"&gt;stroke-width&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"3"&lt;/span&gt;
    &lt;span class="na"&gt;stroke-linecap&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"round"&lt;/span&gt;
    &lt;span class="na"&gt;stroke-linejoin&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"round"&lt;/span&gt;
  &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/svg&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For this particular change, editing the &lt;code&gt;fill&lt;/code&gt; value directly would also work. The purpose of using a simple color change here is to make the round trip easy to verify—not to suggest that every color edit needs a visual editor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open the SVG from VS Code
&lt;/h2&gt;

&lt;p&gt;For the Windows workflow shown here, you need:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;IconVectors 2.20.&lt;/li&gt;
&lt;li&gt;Desktop VS Code 1.101 or later.&lt;/li&gt;
&lt;li&gt;The bundled IconVectors extension.&lt;/li&gt;
&lt;li&gt;A trusted local workspace.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In IconVectors, choose &lt;strong&gt;File → Install Visual Studio Code Extension…&lt;/strong&gt;, select your VS Code installation, then &lt;strong&gt;Install / Update&lt;/strong&gt;. Follow any reload prompt in VS Code.&lt;/p&gt;

&lt;p&gt;Open &lt;code&gt;project-blue.html&lt;/code&gt;. Select its complete &lt;code&gt;&amp;lt;svg&amp;gt;…&amp;lt;/svg&amp;gt;&lt;/code&gt; block, or place your cursor inside it, and run &lt;strong&gt;Edit Inline SVG in IconVectors&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The artwork opens in a separate IconVectors window. VS Code remains your source editor; this does not embed the drawing canvas inside it.&lt;/p&gt;

&lt;p&gt;No AI client or MCP setup is required.&lt;/p&gt;

&lt;h2&gt;
  
  
  Edit visually, then save back
&lt;/h2&gt;

&lt;p&gt;Select the background rectangle and change its fill from &lt;code&gt;#168BEE&lt;/code&gt; to &lt;code&gt;#F7630C&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd4selb1ya3sux3h2kt8b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd4selb1ya3sux3h2kt8b.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Frame from the recording: the icon is edited in IconVectors before returning to its inline source.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Press &lt;strong&gt;Ctrl+S in IconVectors&lt;/strong&gt;, then inspect the SVG in VS Code.&lt;/p&gt;

&lt;p&gt;The accepted result updates the tracked SVG block in the editor buffer. The neighboring heading and paragraph remain outside that update.&lt;/p&gt;

&lt;p&gt;The SVG itself may be reformatted. Compare the resulting artwork and values rather than expecting identical indentation or element serialization.&lt;/p&gt;

&lt;p&gt;There are two saves to distinguish:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Save in IconVectors&lt;/td&gt;
&lt;td&gt;Returns the accepted inline SVG edit to the VS Code buffer.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Save the HTML in VS Code&lt;/td&gt;
&lt;td&gt;Writes the host document to disk. VS Code Auto Save may do this if enabled.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The return happens when you save in IconVectors. It is not continuous synchronization of every drawing operation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Undo restores the source—and pauses the link
&lt;/h2&gt;

&lt;p&gt;With the imported edit as your latest change, press &lt;strong&gt;Ctrl+Z in VS Code&lt;/strong&gt;. Each distinct accepted inline update is one Undo step.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqg2exmck5mbmjkwsoo6l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqg2exmck5mbmjkwsoo6l.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The recording shows the restored source value, not a rendered browser preview.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Undo also pauses the inline association. Otherwise, a later save from the visual editor could put back the change you just rejected.&lt;/p&gt;

&lt;p&gt;Redo restores the imported edit. Do not assume that it also resumes the association.&lt;/p&gt;

&lt;p&gt;If updates are paused, compare the current source with the retained artwork and follow the explicit recovery or restart action.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prefer reviewing a diff first?
&lt;/h3&gt;

&lt;p&gt;Enable &lt;code&gt;iconvectors.reviewInlineChanges&lt;/code&gt; in VS Code's User Settings.&lt;/p&gt;

&lt;p&gt;Then use:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Review Inline Result…&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Apply Reviewed Inline Result…&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This lets you inspect the proposed change before accepting it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the scope clear
&lt;/h2&gt;

&lt;p&gt;This example uses self-contained, static SVG in a local HTML file.&lt;/p&gt;

&lt;p&gt;The following are outside this handoff:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dynamic JSX/TSX expressions.&lt;/li&gt;
&lt;li&gt;Framework bindings.&lt;/li&gt;
&lt;li&gt;Remote or WSL workspaces.&lt;/li&gt;
&lt;li&gt;Browser-based VS Code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also distinguish inline editing from opening a standalone &lt;code&gt;.svg&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;Saving a standalone SVG changes that file on disk; those ordinary external saves are not imported as VS Code Undo steps.&lt;/p&gt;

&lt;p&gt;The companion HTML/SVG example is provided under &lt;strong&gt;CC0&lt;/strong&gt;. That permission covers the example files, not the IconVectors application or its branding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the complete round trip
&lt;/h2&gt;

&lt;p&gt;Start with the blue example, change its background in IconVectors, and inspect the result in VS Code. Try Undo and Redo before saving the host HTML.&lt;/p&gt;

&lt;p&gt;The small example makes it easy to check three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which source block changed.&lt;/li&gt;
&lt;li&gt;When the host file is saved to disk.&lt;/li&gt;
&lt;li&gt;What Undo restores and why it pauses the association.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://iconvectors.io/tutorials/edit-svg-icons-in-visual-studio-code.html?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=vscode_inline&amp;amp;utm_content=article_roundtrip" rel="noopener noreferrer"&gt;Watch the 19-second recording and follow the full tutorial&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For setup and recovery details, see the &lt;a href="https://iconvectors.io/help/vscode-integration.html" rel="noopener noreferrer"&gt;VS Code integration documentation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;When you edit SVGs in a project, do you usually work with separate files or inline markup?&lt;/p&gt;

</description>
      <category>design</category>
      <category>frontend</category>
      <category>tools</category>
      <category>vscode</category>
    </item>
  </channel>
</rss>
