Sublime Forum

Simple Question: How do I save the current file?

#1

Hi,
I have a simple question: How do I save the current file. I can get the file name like this ‘self.view.file_name()’ (in a TextCommand). But I didn’t find anything in the API to save the current file.

Thanks!

0 Likes

#2
self.view.run_command('save')

…or similar.

0 Likes