Sublime Forum

Multiple .py files saved in a project in Sublime Text 3

#1

Hi there,

I am pretty new to programming and for purposes of future work,
I wondered if its possible to save multiple .py (pythonfiles) or any other type for that matter (.py and .json combined for example) in one project?
So for example…I have 3.py files opened at the same time, what should I do
to open them all at the same time from one folder/location/file?

Thanks.

0 Likes

#2

Yes, this is possible. In fact, by default Sublime will remember what files you had open when you quit it and restore back to that state when you restart, so if you had multiple Python files open, you can quit and restart Sublime to keep working.

Note however that closing a window (say by using the controls in the window caption) is not the same as quitting Sublime; closing a window will cause the saved state for that window to be lost without taking further steps.

For something like what you’re asking for, you may want to be using Projects; that would allow you to save the state of a particular window by name, and then recall it at any point in the future. There’s documentation on projects available here: https://www.sublimetext.com/docs/projects.html

This video also discusses Projects and Workspaces and how to use them in Sublime as well:

2 Likes

#3

Thank you so much!

0 Likes