Copy SVG Code non-funcitonal for single layers

When selecting a layer, the Copy SVG Code menu-item is gone from the context-menu.
The Copy SVG Code menu-item is still in the Mac’s menu bar, but that’s cumbersome to work with and requires loads of mouse-moves.

Anyone else seeing this?

  • Sketch version: Version 2025.1 (203044)
  • macOS version: 15.5 (24F74)

Steps to reproduce:
Select a shape - right click it

Expected results:
Copy SVG Code is shown

Actual results:
Copy SVG Code is not shown

This is IMPORTANT for me at it belongs to my usual workflow…

How can I now go back to a previous version of Sketch??

Hi @tiptronic

Thank you for this report. We are aware of this and we can say this change was intentional.

To overcome it, I recommend to either user Command Bar or Create a Custom Keyboard Shortcut:

How to use command bar

  1. Select your layer
  2. Press S
  3. Type Copy SVG Code
  4. Press ⏎

CleanShot 2025-05-28 at 15.32.53

How to create a custom keyboard shortcut

  1. Open System Settings (or System Preferences in older macOS versions).
  2. Navigate to Keyboard > Keyboard Shortcuts.
  3. Select App Shortcuts (this may be under Shortcuts in some versions).
  4. Click the + button to add a new shortcut.
  5. In the pop-up window:
    • Choose Sketch from the application list.
    • Enter the exact menu command name you want to assign a shortcut to (e.g., “Copy SVG Code”).
    • Click the Shortcut field and press the keys you want to use.
  6. Click Done to save your changes. Your new shortcut should now be active in Sketch.

Here is a little video demo of these steps.

If you really want to roll back the version, you can follow the steps outlined in this article: How to roll back to a previous Mac app version?

But beware: After you roll back, you will need to roll back the document version for every document you opened with Athens :classical_building:.

Here are the steps to roll back the version of your documents:

  1. Go to Sketch.com and download a copy of the document (do not open)
  2. Be sure that the correct version of Sketch is open.
  3. Open the downloaded document
  4. Click on your avatar in the top right corner, and you will see an option to “Update document” - Be sure you are the only one editing the document; if someone else is editing the document, this option will not be available.
  5. Select update, and this will allow you to replace the latest version of the document

Hi Cris,

thanks - I rolled back and tried to answer your question in Mail from my mail-account, but I got this:

We’re sorry, but your email message to [“notifications@sketch.discoursemail.com”] (titled Re: [Sketch Community Forum] [Share an issue] Copy SVG Code non-funcitonal for single layers) didn’t work.

Here are some things to check:

  • Do you use more than one email address? Did you reply from a different email address than the one you originally used? Email replies require that you use the same email address when replying.
  • Did your email software properly use the Reply-To: email address when replying? Unfortunately, some email software incorrectly sends replies to the From: address, which won’t work.
  • Was the Message-ID header in the email modified? The Message-ID must be consistent and unchanged.

Need more help? Reach out to us via the Contact Us details at About - Sketch Community Forum

Hi Cristiana,

thanks for your reply.

But I really have to say this is a MAJOR step backward, as it exposes much more mouse-movement to my workflow.

Using the Command-bar makes things even worse, especially if you want to copy multiple items (either one-by-one or all-by-one).

Also - Sketch seems to crash on various occasions when trying to open an very basic Sketch (see attachment).

If you remove the line:

it works.

Here’s the SVG as text:

<svg width="200" height="100" viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    <rect id="background_3" x="0" y="0" width="200" height="100" rx="16"/>
  </defs>
    <use id="clipping" fill="FFF" fill-rule="nonzero" xlink:href="#background_3"/>
    <g id="content" mask="url(#clipping)" font-weight="bold" fill="#FFF" text-anchor="middle">
        <rect id="bg_3" fill="orange" fill-rule="nonzero" x="0" y="0" width="200" height="100" rx="16"/>
    </g>
 </svg>

I can also reproduce a crash, if I add a with a negative width

I am also having a ton of problems when resizing Artboards in this version, because it automatically resizes everything in the artboard.

So it seems I now have to go into each and every Artboard click the new ‘Layout’ icon and then delete it (and activate ‘Clip content’) just to be able to resize the Artboard like before → WITHOUT resizing all content.

Right now I rolled back to 101.9.

Hopefully your devs will consider an update which doesn’t mess with existing stuff.

Thanks

andy

PastedGraphic-1.png