Sublime Forum

Save full view as image

#1

Reading the API there is no way to save the view as image. Like browser for example allows saving full page in image.

Anyone knows of a way to do it?

0 Likes

#2

Do you really need a plugin? Using Flameshot below although I guess that it is easy to link to a plugin.

Postscript … Shift+F11 expands Sublime window
Then follow Flameshot command line here …

Bundle in plugin if you prefer.

Further experiment
Create a Flameshot build file.

{
“cmd”: ["/usr/bin/flameshot", “gui”]
}

Then you can select what area you want to save, full or part screen. Useful exercise for me, at least.

0 Likes

#3

There are lots of ways to achieve this, depending on OS and environment

  1. Any number of screencapture tools (I use SnagIt, but just about every OS has a built-in screencapture tool)
  2. Print to PDF
  3. Dedicated ST plugins, such as CodeShot

That said, the easiest and kindest way to share code snippets is as plain text, like the code block below:

import sublime
import sublime_plugin


class ExampleCommand(sublime_plugin.TextCommand):
    def run(self, edit):
        self.view.insert(edit, 0, "Hello, World!")
0 Likes

#4

Thanks guys for your input, but as mentioned I want to capture whole view as it is without exporting to html or similar. Just current state of the view

0 Likes

#5

Doesn’t Select All (Ctrl+A), > Developer, New Snippet work? I ask because I use that to save any long text stream for indexing. Inside or outside Subl. Or do you need images?

0 Likes