Skip to main content

Feature Request: Save code block as file

  • February 20, 2023
  • 2 replies
  • 379 views

minigolf2000

I often use code blocks to represent small files, and it would be great to be able to be able to right-click save these to a local file. This is similar to the existing “Export selection…” right-click menu that already shows up on code blocks, but that menu option asks if I want to create a PNG/JPG/PDF of the code block, which I usually don’t want. Maybe we could add another export file type to this list? The type that matches the current code block’s selected language.

I’m not sure how this would work with multiple selection but I am personally most interested in using this for a single code block selection

This topic has been closed for comments

2 replies

tank666
  • 4859 replies
  • March 6, 2023

Until it’s implemented by Figma, you can use my “Code Block to File” plugin.

Figma

  • 0 replies
  • April 5, 2023

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings